Release workflow for the launcher; asset policy allows the launcher's files #2

Manually merged
github merged 2 commits from gh-pr/2/head into gh-pr/2/base 2026-12-01 20:41:31 +00:00
Owner

@⁠Zetsukae on GitHub · 2026-11-30 20:25 UTC · original
Zetsukae:development → main · +196 −8 · 7 files · 2 commits · merged 2026-11-30 20:25 UTC

What changes

  • Release workflow (.github/workflows/release-launcher.yml): publishing a release tagged vX.Y.Z builds the launcher's installer on GitHub's Windows runner with that version (Northstar Launcher_X.Y.Z_x64-setup.exe), records GitHub's build provenance for it (a Sigstore attestation naming the repository, tag and commit), and attaches it to the release with its SHA-256. A download can be checked with:
    gh attestation verify "Northstar Launcher_0.1.0_x64-setup.exe" --repo Zetsukae/Northstar
    
    It can be run again by hand for an existing tag.
  • Asset policy: the launcher's TypeScript, HTML, CSS and XML are allowed types; its pictures (icons, logo, background, all ours) are allowed only as .png/.jpg/.ico/.icns, only in launcher/src-tauri/icons/ and launcher/src/assets/, and only if the file really is a picture of its type. The whole repository passes again; the policy test had been failing on those 115 files.

Checked

  • cargo xtask policy: 366 files ok. cargo test -p xtask: 10 pass.
  • The workflow's build command (npx tauri build --bundles nsis -- --locked) builds the installer locally; the version edit was checked on a copy of tauri.conf.json. The workflow itself has not run on GitHub yet: the first release is its test.

Notes

  • Attestations need the repository to be public (or GitHub Enterprise Cloud).
  • Not Windows Authenticode signing, which needs a certificate; SmartScreen may still warn on a new installer.

🤖 Generated with Claude Code

**@⁠Zetsukae** on GitHub · 2026-11-30 20:25 UTC · [original](https://github.com/Zetsukae/Northstar-AMD/pull/2) `Zetsukae:development` → `main` · +196 −8 · 7 files · 2 commits · merged 2026-11-30 20:25 UTC ## What changes - **Release workflow** (`.github/workflows/release-launcher.yml`): publishing a release tagged `vX.Y.Z` builds the launcher's installer on GitHub's Windows runner with that version (`Northstar Launcher_X.Y.Z_x64-setup.exe`), records GitHub's build provenance for it (a Sigstore attestation naming the repository, tag and commit), and attaches it to the release with its SHA-256. A download can be checked with: ```powershell gh attestation verify "Northstar Launcher_0.1.0_x64-setup.exe" --repo Zetsukae/Northstar ``` It can be run again by hand for an existing tag. - **Asset policy**: the launcher's TypeScript, HTML, CSS and XML are allowed types; its pictures (icons, logo, background, all ours) are allowed only as `.png`/`.jpg`/`.ico`/`.icns`, only in `launcher/src-tauri/icons/` and `launcher/src/assets/`, and only if the file really is a picture of its type. The whole repository passes again; the policy test had been failing on those 115 files. ## Checked - `cargo xtask policy`: 366 files ok. `cargo test -p xtask`: 10 pass. - The workflow's build command (`npx tauri build --bundles nsis -- --locked`) builds the installer locally; the version edit was checked on a copy of `tauri.conf.json`. The workflow itself has not run on GitHub yet: the first release is its test. ## Notes - Attestations need the repository to be public (or GitHub Enterprise Cloud). - Not Windows Authenticode signing, which needs a certificate; SmartScreen may still warn on a new installer. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The allowlist knew no launcher file: its TypeScript, HTML, CSS and XML
(text, checked as any other) are now allowed types. Its pictures (icons,
logo, background: ours, none the game's) are binary, so they are allowed
only as .png/.jpg/.ico/.icns, only in launcher/src-tauri/icons/ and
launcher/src/assets/, and only if the file starts as a picture of its
type does. The whole repository passes again (365 files; the policy test
had been failing on the 115 launcher files). Three notes named switches
since removed or by a wildcard; they now name them so the switch test
passes too. The policy doc names the hook's real install command.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Publishing a release tagged vX.Y.Z builds the launcher's NSIS installer
on GitHub's Windows runner with the tag's version (Northstar
Launcher_X.Y.Z_x64-setup.exe), records GitHub's build provenance for it
(Sigstore attestation: who built it, from which repository, tag and
commit) and attaches it to the release with its SHA-256. Players check a
download with `gh attestation verify <file> --repo Zetsukae/Northstar`.
Can be run again by hand for an existing tag. README and the launcher's
note say how.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:41:29 +00:00
github manually merged commit 361b564aa1 into gh-pr/2/base 2026-12-01 20:41:31 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.