We are going to publish releases to the messenger-issues repo. It will support auto updates as well.
First, set up a personal access token for an account that has access to push to the above repo. It must have the repo
permission.
You will need to set this to an environment variable and make it accessible from sudo
:
nano ~/.bash_profile
and addexport GH_TOKEN=<your-token>
sudo visudo
and add theDefaults env_keep += "GH_TOKEN"
line
You will need to set up a signing certificate for Mac. I have used my MacOS developer certs.
Instructions on generating a cert are here.
To set up the Windows code signing cert, we will need to add two more sudo
enabled environment variables:
export WIN_CSC_LINK=<cert>.p12
export WIN_CSC_KEY_PASSWORD=<cert-password>
- Add them to the
visudo
list as shown above.
I used this site and uploaded the 1024x1024
icon in the build/
directory: https://iconverticons.com/online/
- Install git-bash: https://git-scm.com/download/win
- Install Python 2.x and have it set the environment variable on install: https://www.python.org/downloads/
- Install Node/NPM: http://blog.teamtreehouse.com/install-node-js-npm-windows
- Install the Windows build tools:
- Open
cmd
as an administrator - Run:
npm install --global --production windows-build-tools
- Run:
npm config set msvs_version 2015 --global
- Close any shell or
cmd
windows
- Run
npm install
against the desktop app directory - Run
npm start
to run the desktop app - Add the
GH_TOKEN
environment variable - Add the
WIN_CSC_LINK
environment variables - Add the
WIN_CSC_KEY_PASSWORD
environment variable
$ .\node_modules\.bin\electron-builder.cmd build --windows nsis --x64 --ia32
$ .\node_modules\.bin\electron-builder.cmd build --windows nsis --x64 --ia32 --publish always