hex/.github/release
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dax 538d16f668
windows: sign the setup engine so smart app control can run setup (#1987)
* windows: sign the setup engine so smart app control can run setup

Setup extracts a copy of its engine to %TEMP% at launch and writes the
installed uninstaller from the same bytes. Signing only the outer
hex-setup-*.exe left both unsigned, and Windows 11 Smart App Control
blocked the extracted copy ("Unable to execute file in the temporary
directory", error 4551).

SignedUninstaller embeds the engine's signature, but the signature has to
exist before the compile that uses it, and the compile job holds no
credentials. So the release signs it in two passes: the new
windows-setup-engine.yml compiles once with SignedUninstaller=yes and keeps
the unsigned uninst-*.e32 ISCC asks to be signed (ISCC leaves it and aborts
as a compile failure, exit 2); sign-windows-engine signs and verifies it in
the release environment; windows-installers.yml then compiles with the
signed engine and asserts the installed uninstaller's signature.

Test builds and runs without the Azure values keep the unsigned single
compile. Inno Setup is pinned to 6.7.1, read from the compiler's own banner
(ISCC.exe's version resource is 0.0.0), so both passes use one compiler.

* windows: harden the setup engine passes

Review fixes for the signed setup engine:

- sign-windows-engine requires sign-windows to have succeeded, and its
  steps are unguarded like sign-windows-installers, so it can never upload
  an empty digest.
- setup-engine runs only when Windows is signed (it waits for
  sign-windows), so unsigned runs really do a single compile with no
  engine pass at all.
- the Inno re-pin uses choco upgrade --allow-downgrade, because choco
  install --version treats a preinstalled package as already installed.
- Invoke-Iscc collects native stderr safely under Windows PowerShell 5.1
  and pwsh with $PSNativeCommandUseErrorActionPreference on, and echoes
  the compiler's lines so build logs stay readable.
- the version probe compiles a minimal script from standard input into a
  throwaway OutputDir, so it never touches the caller's -OutDir.
- only .e32 exists for the engine; drop the unused .e64 handling.
- the uninstaller signature test also checks the release publisher, and
  the test-builds doc warns that Smart App Control cannot be turned back
  on without resetting Windows.

* windows: correct the setup engine comments
2026-11-19 02:38:03 -05:00
..
cf fix(site): deploy the site from a secretless build through a locked script (#248) 2026-10-27 21:19:57 -04:00
download
upload Release: fix the AUR job's ownership and hidden .SRCINFO (#288) 2026-10-28 11:33:35 -04:00
assemble.sh Windows: hex.com console entry point beside the GUI hex.exe (#1374) 2026-11-05 06:52:51 -05:00
check-glibc-floor.sh Linux releases run on Debian 12 (glibc 2.36) (#1043) 2026-11-02 11:45:38 -05:00
check-x86-baseline.sh x86_64: keep ggml on x86-64-v3; refuse older CPUs with a clear message (#592) (#614) 2026-10-31 13:20:56 -04:00
cloudflare-token.sh ci: deploy from the dev and production environments 2026-11-11 01:52:06 -05:00
deploy-site.sh deploy dev to the anomaly-dev account (#1706) 2026-11-11 18:10:50 -05:00
hex.entitlements
install-linux.sh linux: recolor the tray mark with the panel's text color (#1691) 2026-11-11 10:46:08 -05:00
install-windows.ps1 Windows: hex.com console entry point beside the GUI hex.exe (#1374) 2026-11-05 06:52:51 -05:00
lib.sh Rename the Release workflow to release.yml, like OpenCode (#236) 2026-10-27 19:56:46 -04:00
linux-signing.pub Security: sign Linux releases, lock the installers, vendor the release client, pin actions and download hosts (#370) 2026-10-29 11:06:30 -04:00
macos-credentials.sh ci: read release secrets from aws secrets manager (#1606) 2026-11-09 15:18:26 -05:00
plan.sh ci: dispatch hex releases from dev 2026-11-11 13:23:54 -05:00
publish-dev-notes.sh ci: publish dev notes when the dev-notes branch doesn't exist yet (#1617) 2026-11-09 17:43:51 -05:00
publish-github-release.sh Windows: hex.com console entry point beside the GUI hex.exe (#1374) 2026-11-05 06:52:51 -05:00
push-aur.sh Linux: ship Hex's icon as anomaly.hex everywhere (#652) (#655) 2026-10-31 15:33:04 -04:00
push-homebrew.sh ci: read release secrets from aws secrets manager (#1606) 2026-11-09 15:18:26 -05:00
release-client.sh Release: retry connection resets on release reads (#1919) 2026-11-16 16:24:57 -05:00
release-service.sh Windows: hex.com console entry point beside the GUI hex.exe (#1374) 2026-11-05 06:52:51 -05:00
sign-linux.sh Security: sign Linux releases, lock the installers, vendor the release client, pin actions and download hosts (#370) 2026-10-29 11:06:30 -04:00
sign-macos.sh macOS DMG: retry hdiutil create, which intermittently fails on hosted runners (#1375) 2026-11-05 07:12:12 -05:00
tag-release.sh ci(release): tag and create the GitHub release with GITHUB_TOKEN; no tag ruleset or deploy key 2026-10-27 18:35:45 -04:00
verify-artifacts.sh ci(release): unpack a lone artifact under its name, keep Windows builds' tree clean; CODEOWNERS for .github 2026-10-27 17:26:20 -04:00
verify-authenticode.ps1 windows: sign the setup engine so smart app control can run setup (#1987) 2026-11-19 02:38:03 -05:00
with-secrets.sh ci: harden release and deploy workflows 2026-11-10 10:58:00 -05:00
write-checksums.sh