Skip to content

Support Windows auto updates for Studio - #2747

Merged
quanru merged 9 commits into
mainfrom
feat/windows-hot-update
Jul 13, 2026
Merged

quanru merged 9 commits into
mainfrom
feat/windows-hot-update

Conversation

@quanru

@quanru quanru commented Jul 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add a Windows NSIS installer step after the existing Studio packager flow, using electron-builder --prepackaged while keeping the manual .zip artifact.
  • Point Windows updater metadata at the generated setup executable, while keeping Linux on the external download path.
  • Upload Windows .exe and .blockmap artifacts from release and package-validation workflows.
  • Add regression coverage for the NSIS helper config/args, workflow artifact globs, and Windows/Linux updater status behavior.

Why

Studio previously shipped Windows builds only as packager zip archives, so electron-updater could detect a new version but could not safely replace the running app. Publishing an NSIS setup executable gives NsisUpdater a supported install target for the normal download and restart flow.

Validation

  • pnpm --dir apps/studio run test -- package-electron.test.mjs build-update-metadata.test.mjs updater-handlers.test.ts (Vitest ran the Studio suite: 334 passed, 3 skipped)
  • npx nx build studio
  • pnpm run lint
  • git diff --check

Note: the local machine did not produce a real Windows NSIS artifact; the windows-latest package validation/release workflow should validate the actual installer output.

@quanru quanru changed the title [codex] Support Windows auto updates for Studio Support Windows auto updates for Studio Jul 2, 2026
@quanru
quanru force-pushed the feat/windows-hot-update branch from 8acad14 to d396649 Compare July 7, 2026 11:31
quanru added 5 commits July 8, 2026 15:29
- Move isExternalDownloadOnlyPlatform() to @shared/updater-contract so
  updater.ts and updater-handlers.ts reference the same predicate
- Add quoteWindowsShellArg tests for Windows shell metacharacters
  (parentheses, ampersand, pipe, caret, double quote)
- Clarify why buildWindowsNsisInstaller is x64-only
- Note that studioReleases external link is Linux-only now
@quanru
quanru marked this pull request as ready for review July 13, 2026 03:03
@quanru
quanru merged commit 1146d61 into main Jul 13, 2026
7 checks passed
@quanru
quanru deleted the feat/windows-hot-update branch July 13, 2026 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants