Skip to content

Sign the Windows build with SignPath - #284

Merged
Johann-PLW merged 2 commits into
mainfrom
ci/signpath-windows
Oct 11, 2026
Merged

Johann-PLW merged 2 commits into
mainfrom
ci/signpath-windows

Conversation

@Johann-PLW

@Johann-PLW Johann-PLW commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

What

Windows releases are signed by SignPath, the way the other LEAPPs are, and ship one download: a portable zip holding GLEAPP.exe, built with --onefile. No installer is built any more.

  • release.yml: on Windows, exe --onefile, smoke test, upload as an artifact of the run, sign through signpath/github-action-submit-signing-request, put the signed file in place, build.py verify, and the smoke test again on the signed file (--version, --texworker, --selfcheck). A tag signs only under release-signing; under any other policy, or without the token, it builds unsigned with a warning. A dispatched rehearsal signs under whichever policy is set, and the runner alone trusts the SignPath test certificate so verify still checks a chain.
  • packaging/signpath/gleapp-portable.xml: the artifact configuration, GLEAPP.exe at the root of the GitHub artifact zip.
  • test_builds.yml: Windows builds and tests what ships. The single file is marked as downloaded, smoke-tested headless, and its WebView2 window is opened. The Inno Setup installer and the folder build are no longer built there; both remain for local builds.
  • Footer, README and .claude/rules/ updated: no installer, how to remove a copy an earlier installer put in Program Files, the single file's start cost and the AppLocker/WDAC limit.

GLEAPP specifics

  • Start cost. The single file unpacks the whole bundle to %TEMP% on every start, 121 MB of content model among it. test_builds.yml now times three --version starts so the cost is a measured number.
  • Workers. GLEAPP re-runs sys.executable for the video, texture and Windows.edb workers. In PyInstaller 6.9 and later a child started that way reuses the parent's unpacked folder (PYINSTALLER_RESET_ENVIRONMENT turns it off). That was read in the 6.22.2 bootloader, not measured.
  • Orphaned server. The bootloader runs GLEAPP in a child process and puts it in no job object, so killing the process bash started leaves the web server running. The smoke test ends with taskkill /T /IM GLEAPP.exe.

🤖 Generated with Claude Code

Windows releases now ship one download, a portable zip holding GLEAPP.exe built with
--onefile, as the other LEAPPs do and as the code signing policy in the README already
says. release.yml uploads it as an artifact of the run, SignPath signs it with the
gleapp-portable artifact configuration (kept in packaging/signpath/), and the signed
file is verified and smoke-tested again, since signing appends to the executable and
the single file reads its archive from its end. A tag signs only under the
release-signing policy and otherwise builds unsigned with a warning; a dispatched
rehearsal signs under whichever policy is set. No installer is built any more.

test_builds.yml builds and smoke-tests the single file on Windows, marked as downloaded,
opens its window from it, and times three --version starts, because the single file
unpacks the whole bundle (121 MB of content model among it) to %TEMP% on every start.
The workers GLEAPP re-runs reuse the parent's unpacked folder (PyInstaller 6.9 and
later). The web smoke test ends with taskkill, because the bootloader's child process
outlives the process bash started.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Johann-PLW Johann-PLW changed the title Sign the Windows build with SignPath; ship only the portable single file Sign the Windows build with SignPath Oct 11, 2026
@Johann-PLW

Copy link
Copy Markdown
Collaborator Author

Test builds run 38125133918 passed on all four legs. On Windows the single file is 250,878,057 bytes. --version came back through the windowed single file. --texworker, --selfcheck and web passed, and the window opened from the file marked as downloaded (smartscreen=False crash_reports='local'). The cost: three --version starts took 8.70, 8.29 and 8.30 s, against 0.16 to 0.53 s for the one-folder build on Linux and both Macs. A Windows folder build was not timed. Signing itself is untested until the SignPath secret and variables are set on this repository.

@Johann-PLW
Johann-PLW merged commit 1bd5674 into main Oct 11, 2026
11 checks passed
@Johann-PLW
Johann-PLW deleted the ci/signpath-windows branch October 11, 2026 09:11
Maxitelmo added a commit to Maxitelmo/GLEAPP that referenced this pull request Oct 19, 2026
Brings the branch up to date with the 38 commits main gained since
1bd5674 (abrignoni#284). The one conflict was the import lines of
gleapp/web/app.py: the branch imports provenance and main imports
image_set_source; both are kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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