Ship the browser engine as its own release file

The installer no longer bundles the engine, and the installer script
stops when the bundle names it or when the setup file is over 30 MB.
pnpm build:browser-engine packages the engine, writes a deterministic
ZIP and its record to releases/browser-engine/<version>/, and pins the
ZIP in the host. The installer hooks remove the engine folder that 0.1.48
leaves behind, and uninstall removes the downloaded engine.
This commit is contained in:
Knotty Wyvern
2026-10-29 01:25:53 -07:00
parent c06d48f250
commit aebe700366
18 changed files with 511 additions and 52 deletions
+14
View File
@@ -228,4 +228,18 @@ SectionEnd
WriteRegStr SHCTX "${RUNESTONE_UNINSTKEY}" "RuneStoneWindowsVersion" "$0"
Pop $1
Pop $0
; Releases up to 0.1.48 put the browser engine in the installation folder. Setup does not start
; their uninstaller, so this hook removes that folder. The engine is now a separate download.
${If} "$INSTDIR" != ""
RMDir /r "$INSTDIR\browser-engine"
${EndIf}
!macroend
; The downloaded browser engine is a program, not user data. Uninstall removes it, also when the
; user keeps the app data. The browser profiles stay in $LOCALAPPDATA\${BUNDLEID}\browser.
!macro NSIS_HOOK_POSTUNINSTALL
${If} $UpdateMode <> 1
SetShellVarContext current
RMDir /r "$LOCALAPPDATA\${BUNDLEID}\browser-engine"
${EndIf}
!macroend