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

build: Sign windows builds via remote key storage (#15718) #15735

Merged

Conversation

y3rsh
Copy link
Member

@y3rsh y3rsh commented Jul 22, 2024

cherry-pick 246efcb

Must update chore_release-7.4.0 so that windows builds work and we may test an update. To understand the changes see #15718

Integrates code signing with a key stored in digicert one to app build
workflows.

There are a couple caveats:
- You can do this locally if you have a windows machine and if you have
the right accounts and permissions. Read: you basically can't do this
locally
- Digicert for some reason charges per signature. We sign a lot of
stuff. Therefore, we are only going to produce signed windows builds for
releases and if a dev really needs to by pushing a branch that has
"as-release" in it (in the same way we only do app builds if you push a
branch that has app-build in it - so building and signing both windows
apps would require a branch that has app-build-both-as-release in it)
- This just doesn't work at all with electron-builder, and they don't
seem to want to change things to fix it; specifically, you can only
configure e-b to pass along a key link and a password, and you basically
can't do that anymore. So we have to have a (thankfully simple) custom
sign script.

Closes RDEVOPS-128

## to leave draft
- [x] this produces a signed installer that passes smartscreen
- [x] this only does that on branches with the right kinds of names
@y3rsh y3rsh self-assigned this Jul 22, 2024
@y3rsh y3rsh requested review from a team as code owners July 22, 2024 16:49
@y3rsh y3rsh requested review from shlokamin and removed request for a team July 22, 2024 16:49
@y3rsh y3rsh merged commit 6fe994e into chore_release-7.4.0 Jul 22, 2024
17 of 25 checks passed
@y3rsh y3rsh deleted the RDEVOPS-128-cherrypick-to-chore_release-7.4.0 branch July 22, 2024 17:05
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.

3 participants