Files
chia-blockchain/electron-wix

Building the installer

Tooling

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 signtool from the windows 10 SDK and set the path to $signtool in config.ps1.
  • Also in config.ps1, update the Sign-Item function 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 prerequisites folder. 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