Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Set build targets via electron builder config file #2250

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

taratatach
Copy link
Member

Please make sure the following boxes are checked:

  • PR is not too big
  • it improves UX & DX in some way
  • it includes unit tests matching the implementation changes
  • it includes scenarios matching a new behaviour or has been manually tested
  • it includes relevant documentation

@taratatach taratatach self-assigned this Jul 11, 2022
@taratatach taratatach force-pushed the build/change-targets branch 2 times, most recently from b0203b2 to 7a3ffcc Compare July 11, 2022 14:27
  Built architectures can be defined per target via the Electron
  builder's configuration file.
  This is simpler to make binaries for specific architectures than via
  the command line arguments, especially on CIs where the same workflow
  or action could be used for multiple targets.

  We take the opportunity to make a Apple silicon build (i.e. `arm64`)
  for recent Mac computers alongside the x64 build.
  CI build jobs can save files as artifacts attached to the job itself.
  It is a convenient way to access binaries built from a specific
  commit.

  This saves built executables or installers and the electron-updater
  last version manifests to Github Actions and AppVeyor jobs.
  A try/catch surrounding the notarization request was preventing the
  macOS jobs from failing when the request failed.
  However, the notarization is mandatory for Cozy Desktop to be
  installable without security warnings.

  This removes the try/catch block so the build will fail with the
  notarization request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant