Fix direct window launch when VBScript is disabled

The window now starts Luminary.ps1 through a hidden PowerShell process instead of relying on the VBS entry point, and the installer defaults to Luminary.cmd. Bump the beta to 0.5.1.
This commit is contained in:
2026-11-28 23:03:51 +00:00
parent fe1da03f66
commit 726a5b922b
11 changed files with 84 additions and 33 deletions
+10 -8
View File
@@ -84,7 +84,7 @@ Output:
```
<out>/
Luminary-0.5.0-win-x64.zip the deliverable
Luminary-0.5.1-win-x64.zip the deliverable
stage/Luminary/ the unpacked bundle (kept for inspection)
cache/node-v24.22.2-win-x64.exe pinned runtime, reused next time
cache/SHASUMS256-v24.22.2.txt
@@ -125,7 +125,7 @@ the context; the app's own `Dockerfile` is unaffected.
Inno Setup 6 on any Windows machine (or a Windows CI runner):
```bat
iscc /DAppVersion=0.5.0 /DLauncher=Luminary.vbs ^
iscc /DAppVersion=0.5.1 /DLauncher=Luminary.cmd ^
/DSourceDir="C:\builds\luminary\stage\Luminary" windows\installer.iss
```
@@ -221,9 +221,11 @@ Evergreen installer. The exe adds roughly 70 MB to the zip, which is why it is
opt-in rather than always shipped.
Double-clicking `LuminaryWindow.exe` directly is safe too. Without `--url` it
starts the bundle launcher (`Luminary.cmd`, `Luminary.vbs` or `Luminary.exe`)
and exits; the launcher then starts desktop mode and reopens the window with
`--url`. If the exe is copied out of a complete bundle, it explains that it is
starts the bundle launcher and exits; the launcher then starts desktop mode and
reopens the window with `--url`. It uses `Luminary.exe` when the Go build ships
one, otherwise it runs `Luminary.ps1` through a hidden PowerShell process. That
avoids `Luminary.vbs` and Windows Script Host, which some machines disable by
policy. If the exe is copied out of a complete bundle, it explains that it is
only the window rather than showing a signed-out page.
`Luminary.cmd -Verify` checks the bundle. `Luminary.cmd -Repair` re-downloads
@@ -248,9 +250,9 @@ Full behaviour, edge cases and the test checklist: [launcher/DESIGN.md](launcher
```bash
cd <out>
sha256sum Luminary-0.5.0-win-x64.zip
unzip -t Luminary-0.5.0-win-x64.zip | tail -1
unzip -l Luminary-0.5.0-win-x64.zip | grep -E 'node.exe|Luminary\.(exe|cmd|vbs)|app/server/index.mjs'
sha256sum Luminary-0.5.1-win-x64.zip
unzip -t Luminary-0.5.1-win-x64.zip | tail -1
unzip -l Luminary-0.5.1-win-x64.zip | grep -E 'node.exe|Luminary\.(exe|cmd|vbs)|app/server/index.mjs'
```
On Windows, the real test is the checklist in `launcher/DESIGN.md` §15,