Repository navigation
Sign Windows releases with SignPath - #50
Merged
Merged
Conversation
The Windows build now signs in two rounds through SignPath: the program files built from this repository, then the installer and portable app packed from them. latest.yml and the blockmap are rebuilt from the signed installer so auto-update checksums still match. The signing policy comes from the SIGNPATH_SIGNING_POLICY variable (test-signing by default).
windows.yml builds and signs the Windows installer and portable app and keeps them as a run artifact. The Release workflow calls it and uploads the files; it can also be run by hand as a signing test that releases nothing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Code-signs the Windows installer and portable app through SignPath (SignPath Foundation, free for open source).
Targets
mainon purpose: the Windows build workflow's Run workflow button only shows once the file is on the default branch, and it's needed for the signing test. CI and docs only, no app code. Mergemainback intodevafterwards.What changes
.github/workflows/windows.yml(new): builds the Windows app and signs it in two rounds.Orfeo.exe,orfeo_audio.node,orfeo-review.exe). Third-party files (Electron DLLs, FluidSynth, MIDI add-ons) stay unsigned.It then rebuilds
latest.ymland the blockmap from the signed installer, checks every file carries a signature, and keeps the result as the run artifactwindows-release. It can be run by hand as a signing test that releases nothing.release.yml: "2. Build (Windows)" now callswindows.yml. A new "2. Upload (Windows)" job uploads its files, plus theOrfeo-Updatecopy, into the draft release. The Store package is still built from the same (now signed) app folder.scripts/signed-update-info.mjs: signing changes the installer's checksum, so this rebuilds the blockmap the same way electron-builder does and updatessha512/sizeinlatest.yml. Without it, installed copies would reject the update..signpath/*.xml: the two artifact configurations,app-filesandinstallers, as pasted into SignPath.docs/CONTRIBUTING.md: a "Windows code signing" section covering setup and the test run.Settings
SIGNPATH_API_TOKEN: API token of the SignPath CI user.SIGNPATH_SIGNING_POLICY: unset meanstest-signing. Set it torelease-signingonce the production certificate is in SignPath; each request then waits for approval there.Test plan
main: both signing requests complete, the signature check passes, andwindows-releaseholds a test-signed installer and portable app