Skip to content

Sign Windows releases with SignPath - #50

Merged
Squarebow merged 2 commits into
mainfrom
claude/determined-gates-h97f7g
Nov 27, 2026
Merged

Squarebow merged 2 commits into
mainfrom
claude/determined-gates-h97f7g

Conversation

@Squarebow

@Squarebow Squarebow commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Code-signs the Windows installer and portable app through SignPath (SignPath Foundation, free for open source).

Targets main on 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. Merge main back into dev afterwards.

What changes

  • .github/workflows/windows.yml (new): builds the Windows app and signs it in two rounds.

    1. The program files built from this repo (Orfeo.exe, orfeo_audio.node, orfeo-review.exe). Third-party files (Electron DLLs, FluidSynth, MIDI add-ons) stay unsigned.
    2. The installer and portable app, packed from the signed app folder.

    It then rebuilds latest.yml and the blockmap from the signed installer, checks every file carries a signature, and keeps the result as the run artifact windows-release. It can be run by hand as a signing test that releases nothing.

  • release.yml: "2. Build (Windows)" now calls windows.yml. A new "2. Upload (Windows)" job uploads its files, plus the Orfeo-Update copy, 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 updates sha512/size in latest.yml. Without it, installed copies would reject the update.

  • .signpath/*.xml: the two artifact configurations, app-files and installers, as pasted into SignPath.

  • docs/CONTRIBUTING.md: a "Windows code signing" section covering setup and the test run.

Settings

  • Secret SIGNPATH_API_TOKEN: API token of the SignPath CI user.
  • Variable SIGNPATH_SIGNING_POLICY: unset means test-signing. Set it to release-signing once the production certificate is in SignPath; each request then waits for approval there.

Test plan

  • Actions → Windows build → Run workflow on main: both signing requests complete, the signature check passes, and windows-release holds a test-signed installer and portable app
  • The signed installer installs and runs on Windows
  • Next real release: installed copies pick up the update (checksum matches)

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.
@Squarebow
Squarebow merged commit 901a17d into main Nov 27, 2026
5 of 6 checks passed
@Squarebow
Squarebow deleted the claude/determined-gates-h97f7g branch November 27, 2026 08:24
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.

1 participant