Skip to content

Commit 96a7925

Browse files
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: Cursor
1 parent f12044d commit 96a7925

4 files changed

Lines changed: 424 additions & 13 deletions

File tree

app/package-lock.json

Lines changed: 12 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "https://github.com/HyperlinksSpace/HyperlinksSpaceBot.git"
99
},
1010
"main": "expo-router/entry",
11-
"version": "53.0.1281",
11+
"version": "53.0.1283",
1212
"type": "module",
1313
"engines": {
1414
"node": ">=18 <=22"
@@ -59,12 +59,19 @@
5959
],
6060
"win": {
6161
"icon": "assets/icon.ico",
62+
"artifactName": "HyperlinksSpaceApp_${version}.${ext}",
6263
"target": [
6364
{
6465
"target": "nsis",
6566
"arch": [
6667
"x64"
6768
]
69+
},
70+
{
71+
"target": "zip",
72+
"arch": [
73+
"x64"
74+
]
6875
}
6976
]
7077
},
@@ -98,6 +105,7 @@
98105
"@react-navigation/native": "^7.1.6",
99106
"@swap-coffee/sdk": "^1.5.4",
100107
"@tma.js/sdk-react": "^3.0.16",
108+
"adm-zip": "^0.5.16",
101109
"electron-updater": "^6.8.3",
102110
"expo": "~54.0.0",
103111
"expo-blur": "~15.0.8",

0 commit comments

Comments
 (0)