- Check if there are any warnings in the console. Those will be treated as errors in the CI environment.
.github/workflows/build.yaml builds the app on macOS, Ubuntu and Windows for every push and every PR into master. Only a v* tag publishes.
| Build | Publishes | macOS signs and notarizes |
|---|---|---|
v* tag |
yes, to a draft release | required; the build fails otherwise |
| PR from a branch in this repo | no | required; the build fails otherwise |
| PR from a fork | no | no; GitHub gives fork PRs no secrets, so the run warns |
| Other branch push | no | only if the repo has the signing secrets |
Signing needs the mac_certs and mac_certs_password secrets. Notarizing needs apple_id, apple_id_pass and apple_id_team. To check signing before a release, open the PR from a branch in this repo, not a fork.
- Set
versioninpackage.jsonto the new version, for example2.1.0. UpdateCHANGELOG.mdand the download links indocs/_layouts/default.html. Merge tomaster. - Tag that commit with
vand the same version, and push the tag:CI builds all three platforms and uploads them to a draft release namedgit tag v2.1.0 git push origin v2.1.0v2.1.0, creating the draft if needed. electron-builder names the release frompackage.json, not from the tag, so the two must match. - Check the draft on GitHub, then publish it. Auto-update and the download links only see a published release.
A tag pushed after its release is already published uploads nothing; electron-builder only logs a warning. To redo a release, delete the release and tag, or bump the version.
To publish from your own machine instead, set GH_TOKEN and run yarn publish-all. It packs for every platform, but macOS can only be signed and notarized on a Mac.
A production build uploads JavaScript source maps for the main process and the page when SENTRY_ORG and SENTRY_AUTH_TOKEN are set. The release name is raxmlGUI@version. The preload is not included, and a dev start does not upload.
Native crash symbols are not uploaded. To add them, download the Electron symbols for the installed Electron version and upload them with sentry-cli upload-dif.
Build steps for local development
Install ruby 2.4 or higher
Run
gem install jekyll bundler
In docs folder, run
bundle install
Run npm script docs-serve or in docs folder run
bundle exec jekyll serve