Ship Windows as a per-user NSIS installer

Replaces the Inno Setup script, which could not be built off Windows, with an
NSIS installer that cross-compiles on Linux, installs under LOCALAPPDATA with
no UAC prompt, and keeps the catalog on uninstall. build.mjs gains --installer
and --no-installer, and --publish now ships the setup exe beside the portable
zip.
This commit is contained in:
2026-11-29 01:15:52 +00:00
parent 7ecc4474c5
commit 335cb3c757
8 changed files with 442 additions and 128 deletions
+7 -6
View File
@@ -25,7 +25,7 @@ luminary-windows/
upstream.txt # pinned tag + commit + expected package version
build.mjs # same script as windows/build.mjs, one copy
launcher/ # Luminary.ps1, .cmd, .vbs, Stop, go/
installer.iss
installer.nsi # NSIS, builds on Linux
Dockerfile # Go + Node 24 image for the exe build
README.md
CHANGELOG.md # per-release: upstream tag, node version, hashes
@@ -99,14 +99,15 @@ jobs:
path: ${{ runner.temp }}/out/*
```
Optional later steps: `softprops/action-gh-release` to attach the zip to a
Gitea release, and a Windows runner that also builds `installer.iss` (Inno Setup
is not available on Linux without Wine).
Optional later steps: `softprops/action-gh-release` to attach the zip and setup
exe to a Gitea release. NSIS runs on the Linux runner too (`--installer`), so a
Windows runner is not needed for the installer.
## Release and version policy
- One packaging release per upstream tag that should be installable on Windows;
the artifact is `Luminary-<version>-win-x64.zip`.
the artifacts are `Luminary-<version>-win-x64-setup.exe` and the portable
`Luminary-<version>-win-x64.zip`.
- `CHANGELOG.md` records upstream tag/commit, bundled Node version, artifact
SHA-256 and any launcher change.
- Security fixes: when upstream ships one, the pin moves, the packaging tag
@@ -124,7 +125,7 @@ is a packaging-repo feature, not an app change.
## Migration from the in-repo `windows/` folder
1. Create the new repo.
2. Copy `windows/` to its root (`build.mjs`, `launcher/`, `installer.iss`,
2. Copy `windows/` to its root (`build.mjs`, `launcher/`, `installer.nsi`,
`Dockerfile`, this plan and `README.md`), adjusting the input paths in
`build.mjs` to the fetched upstream work tree.
3. Add `upstream.txt`, the CI workflow, `CHANGELOG.md`.