Commit 96a7925
committed
feat(windows): stage updates under versions/ and apply without NSIS
Windows packaged builds use a GitHub sidecar (zip-latest.yml + app zip)
alongside latest.yml: download and verify the zip, unpack under
installDir/versions/<version>/, enable Install when ready.
On Install, a detached PowerShell mirrors each top-level file/folder from
staging into the install dir (skips "versions" so staging trees stay
safe), removes the applied versions/<version> folder, and relaunches
the app. Falls back to electron-updater NSIS download + quitAndInstall
if the sidecar is missing or fails.
After startup, schedule a delayed sweep of installDir/versions/* to
delete folders older than the running app version.
Build: add win zip target + HyperlinksSpaceApp_${version}.${ext},
adm-zip; cleanup.cjs moves the zip and writes zip-latest.yml.
Made-with: Cursor1 parent f12044d commit 96a7925
4 files changed
Lines changed: 424 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
68 | 75 | | |
69 | 76 | | |
70 | 77 | | |
| |||
98 | 105 | | |
99 | 106 | | |
100 | 107 | | |
| 108 | + | |
101 | 109 | | |
102 | 110 | | |
103 | 111 | | |
| |||
0 commit comments