mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-09-10 10:05:10 -05:00
Building the installer
Tooling
- Install electron-packager in CLI mode
npm install electron-packager -g - Install .NET 3.5.1 (Server Manager) - Not required on Github windows-latest runner.
- Install WiX
Electron
In PowerShell make sure that electron and all dependencies are present:
# from the electron-ui folder
npm install --runtime=electron --target=1.7.6
Verify that the wallet runs with npm start.
Build script
Signing
In order to sign the installation packages during the build:
- Install
signtoolfrom the windows 10 SDK and set the path to$signtoolinconfig.ps1. - Also in
config.ps1, update theSign-Itemfunction with signing certificate specifics.
(If a signing certificate isn't found signing will be skipped)
Building
- Edit the version number in
config.ps1. - Make sure all prerequisite executables are downloaded and placed in the
prerequisitesfolder. Refer to pre-reqs readme.md for details.
# from the electron-wix folder
.\rebuild-all.ps1
The various other build scripts can be used to build individual packages. MSI's and the full installer executable will be in the electron-wix\build folder.
Machine-wide installation
The intaller executable cannot be used for per-machine installations and by default the MSIs are per user. In order to install per machine, run the following from an elevated command prompt:
# replace the msi name with the current version
msiexec /i <path_to_msi> MSIINSTALLPERUSER="" ALLUSERS=1