diff --git a/CHANGELOG.md b/CHANGELOG.md index 767669b..33e597d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,13 @@ alongside 0.5.4; macOS remains at 0.5.1. ### Fixed +- **The setup now starts Luminary when "Start Luminary" is ticked.** The finish + page ran the launcher with NSIS `Exec`, which passes the path straight to + `CreateProcess`. This build ships the PowerShell launcher, so the target was + `Luminary.vbs`, a script `CreateProcess` cannot start: the box was ticked, the + installer closed and no window opened. It now goes through the shell + (`ExecShell`), which starts the `.exe`, `.vbs` and `.cmd` alike. The 0.5.4.1 + setup was rebuilt from the same staged bundle; the zip is unchanged. - **Fujifilm imports are about five times faster.** LibRaw was asked for three Markesteijn demosaic passes on X-Trans sensors; on a 40 MP X-T5 frame that took **49.9 s**, and one pass takes **8.8 s** with no visible difference in the 6000 px diff --git a/windows/installer.nsi b/windows/installer.nsi index 8af7e48..e1e5e09 100644 --- a/windows/installer.nsi +++ b/windows/installer.nsi @@ -95,6 +95,13 @@ VIAddVersionKey "LegalCopyright" "MIT licensed" !endif !define MUI_FINISHPAGE_RUN "${APP_LAUNCH}" !define MUI_FINISHPAGE_RUN_TEXT "Start ${APP_NAME}" +; MUI starts the finish-page target with Exec, which hands the path straight to +; CreateProcess. That only works for a real executable: when the bundle ships +; the PowerShell launcher (no Go toolchain at build time) the target is +; Luminary.vbs, and CreateProcess cannot start a script, so the ticked "Start +; Luminary" box closed the installer and nothing opened. ExecShell goes through +; the shell, so the exe, the .vbs and the .cmd all start. +!define MUI_FINISHPAGE_RUN_FUNCTION "StartLuminaryOnFinish" !insertmacro MUI_PAGE_WELCOME !if /FileExists "${SOURCE_DIR}/LICENSE" @@ -114,6 +121,10 @@ LangString DESC_Main ${LANG_ENGLISH} "The editor, film looks, bundled Node runti LangString DESC_Desktop ${LANG_ENGLISH} "Put a Luminary shortcut on the desktop." LangString DESC_Startup ${LANG_ENGLISH} "Start Luminary in the background when you sign in to Windows." +Function StartLuminaryOnFinish + ExecShell "open" "${APP_LAUNCH}" +FunctionEnd + Function .onInit ; The launcher refuses these too, but the installer should say so before it ; copies 250 MB onto an unsupported PC. diff --git a/windows/releases/SHA256SUMS.txt b/windows/releases/SHA256SUMS.txt index 51d5757..849aaca 100644 --- a/windows/releases/SHA256SUMS.txt +++ b/windows/releases/SHA256SUMS.txt @@ -4,7 +4,7 @@ c95ae4d21dfd80cd6206fc3f276c1d1d6afa61f55d48e6646f65784b483ca590 Luminary-0.5.2 e81cbe4001bef43f79a2200acecc5dafbcf6c3c04dc2f6db4685f1f0b3ba3cdc Luminary-0.5.2-win-x64.zip 3e5a120b6d7483e0bdc6fb9091cf02e4bbab49e57e4d39c433521fb6ddf44b5a Luminary-0.5.3.1-win-x64-setup.exe f4cd3e4a40dc79d9fb9d0d3dc627f317d33955cc9d6c77c5ee5f8bcb843b9a58 Luminary-0.5.3.1-win-x64.zip -1d5eeb6c9d3200aad4d0a0f68577c003b5b58ff56caee4a420068238abaed225 Luminary-0.5.4.1-win-x64-setup.exe +46573d0e0ad867734cece0ef647b732bcefcfec545483515ce6080f13deb153b Luminary-0.5.4.1-win-x64-setup.exe cbe92eb6a5495b376db27323a44996a79bd950ce44fd5410ea360bc83c4ed77f Luminary-0.5.4.1-win-x64.zip 97cceb61bba34733013d21e1fe240f39da790843694e1390f6266aa128f1c456 Luminary-0.5.4-win-x64-setup.exe 16d033a863345542a07e65bb3914f63d35432fe7b88c33cc65f9d7634428ab98 Luminary-0.5.4-win-x64.zip