cicy-desktop 2.1.201 → 2.1.203

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -133,16 +133,22 @@ jobs:
133
133
  try { $advance = ([version]$version -ge [version]$cur) } catch { $advance = $true }
134
134
  if ($advance) {
135
135
  Write-Host "Advancing latest: $cur -> $version"
136
+ # 关键:版本指针(latest-version.txt)必须在所有安装包传完之后才写 —— 否则
137
+ # updater 先读到新版本号、用户点下载,但 exe 还没传完 → 404。所以先把所有 exe
138
+ # 传齐(versioned 已在上面传过 + latest + win-latest),最后才更新版本指针。
136
139
  & $oss cp "$($exe.FullName)" "$base/cicy-desktop-latest.exe" -f --acl public-read
137
140
  if ($LASTEXITCODE -ne 0) { Write-Error "latest upload failed"; exit 1 }
138
- Set-Content -NoNewline -Path "current-latest.txt" -Value $version
139
- & $oss cp "current-latest.txt" "$base/latest-version.txt" -f --acl public-read
140
- if ($LASTEXITCODE -ne 0) { Write-Error "latest-version.txt upload failed"; exit 1 }
141
141
  # Unified per-platform naming: cicy-desktop-<platform>-latest.<ext> so every OS
142
142
  # shares one URL shape (win + mac-x64 + mac-arm64). The bare cicy-desktop-latest.exe
143
- # / latest-version.txt above are kept as backward-compat aliases for old links.
143
+ # / latest-version.txt are kept as backward-compat aliases for old links.
144
144
  & $oss cp "$($exe.FullName)" "$base/cicy-desktop-win-latest.exe" -f --acl public-read
145
+ if ($LASTEXITCODE -ne 0) { Write-Error "win-latest upload failed"; exit 1 }
146
+ # —— 安装包全部就位,最后写版本指针(version file 永远最后)——
147
+ Set-Content -NoNewline -Path "current-latest.txt" -Value $version
148
+ & $oss cp "current-latest.txt" "$base/latest-version.txt" -f --acl public-read
149
+ if ($LASTEXITCODE -ne 0) { Write-Error "latest-version.txt upload failed"; exit 1 }
145
150
  & $oss cp "current-latest.txt" "$base/win-latest-version.txt" -f --acl public-read
151
+ if ($LASTEXITCODE -ne 0) { Write-Error "win-latest-version.txt upload failed"; exit 1 }
146
152
  } else {
147
153
  Write-Host "Skip latest: building $version < published $cur (older build — not clobbering newer latest)"
148
154
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cicy-desktop",
3
- "version": "2.1.201",
3
+ "version": "2.1.203",
4
4
  "description": "CiCy - AI-powered operating system browser",
5
5
  "main": "src/main.js",
6
6
  "bin": {