cicy-desktop 2.1.227 → 2.1.229
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.
- package/.github/workflows/mac-app-release.yml +12 -0
- package/.github/workflows/windows-exe-release.yml +19 -0
- package/package.json +6 -6
- package/src/backends/homepage-react/assets/{index-WFj0s8TL.js → index-DEVBS0FI.js} +6 -6
- package/src/backends/homepage-react/index.html +1 -1
- package/src/tabbrowser/newtab-protocol.js +43 -14
- package/src/tabbrowser/tab-browser.html +1 -1
- package/workers/render/src/App.jsx +4 -1
|
@@ -254,3 +254,15 @@ jobs:
|
|
|
254
254
|
done
|
|
255
255
|
printf '%s' "$VER" > mac-latest-version.txt
|
|
256
256
|
"$OSS" cp mac-latest-version.txt "$BASE/mac-latest-version.txt" -f --acl public-read || true
|
|
257
|
+
|
|
258
|
+
# Prune —— 版本化 pkg 只保留最新 2 个版本(每版含 x64+arm64),更旧的删掉(省 OSS)。
|
|
259
|
+
# 只匹配 cicy-desktop-<semver>-<arch>.pkg;mac-<arch>-latest.pkg 指针不含 semver、永远保留。非致命。
|
|
260
|
+
allvers=$("$OSS" ls "$BASE/cicy-desktop-" -s 2>/dev/null | grep -oE 'cicy-desktop-[0-9]+\.[0-9]+\.[0-9]+-(x64|arm64)\.pkg' | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | sort -uV || true)
|
|
261
|
+
keep=$(echo "$allvers" | tail -2)
|
|
262
|
+
for v in $allvers; do
|
|
263
|
+
echo "$keep" | grep -qx "$v" && continue
|
|
264
|
+
for ARCH in x64 arm64; do
|
|
265
|
+
"$OSS" rm "$BASE/cicy-desktop-$v-$ARCH.pkg" -f 2>/dev/null || true
|
|
266
|
+
done
|
|
267
|
+
echo "Pruned old mac pkg version: $v"
|
|
268
|
+
done
|
|
@@ -153,6 +153,25 @@ jobs:
|
|
|
153
153
|
Write-Host "Skip latest: building $version < published $cur (older build — not clobbering newer latest)"
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
+
# 4) Prune —— releases/ 下带版本号的 exe 只保留最新 2 个,更旧的删掉(省 OSS 空间)。
|
|
157
|
+
# 只匹配 cicy-desktop-<semver>.exe;latest / win-latest 指针不含 semver、永远保留。
|
|
158
|
+
# 非致命:prune 失败只告警,不影响发版。
|
|
159
|
+
try {
|
|
160
|
+
$listing = & $oss ls "$base/cicy-desktop-" -s 2>$null
|
|
161
|
+
$verExes = @()
|
|
162
|
+
foreach ($line in $listing) {
|
|
163
|
+
if ($line -match 'cicy-desktop-(\d+\.\d+\.\d+)\.exe$') {
|
|
164
|
+
$verExes += [PSCustomObject]@{ Key = $line.Trim(); Ver = [version]$matches[1] }
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
$toDelete = @($verExes | Sort-Object Ver -Descending | Select-Object -Skip 2)
|
|
168
|
+
foreach ($o in $toDelete) {
|
|
169
|
+
Write-Host "Pruning old EXE: $($o.Key)"
|
|
170
|
+
& $oss rm "$($o.Key)" -f 2>$null
|
|
171
|
+
}
|
|
172
|
+
Write-Host "Prune done: kept newest 2 of $($verExes.Count) versioned exe(s), deleted $($toDelete.Count)"
|
|
173
|
+
} catch { Write-Host "::warning::OSS prune skipped: $_" }
|
|
174
|
+
|
|
156
175
|
# 3) 保留策略 — 只留最近 $KEEP 个版本化 exe(~130MB/个),旧的删掉,避免 OSS 无限膨胀。
|
|
157
176
|
# latest.exe / latest-version.txt 不在此列(名字不匹配 X.Y.Z),永远保留。
|
|
158
177
|
$KEEP = 2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cicy-desktop",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.229",
|
|
4
4
|
"description": "CiCy - AI-powered operating system browser",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"bin": {
|
|
@@ -144,11 +144,11 @@
|
|
|
144
144
|
"//optionalDependencies": "(2026-06 回调): mac/linux 改回 native cicy-code(:8008,colima 在 16G mac 上压垮内存)→ 重新内置 cicy-code-<plat> / cicy-mihomo-<plat>,localbin.fromBundle 零网络 seed(npm 仅作更新通道,带 npmmirror→npmjs 回退)。这些由 scripts/sync-runtime-deps.cjs 在 tag-push 时同步到最新版。npm 的 os/cpu 字段保证每个平台只装自己那份。Windows 仍走 docker(WSL :8009),它那份 cicy-code-windows 用不到但 bundle 着无害。",
|
|
145
145
|
"optionalDependencies": {
|
|
146
146
|
"electron": "41.0.3",
|
|
147
|
-
"cicy-code-darwin-x64": "2.3.
|
|
148
|
-
"cicy-code-darwin-arm64": "2.3.
|
|
149
|
-
"cicy-code-linux-x64": "2.3.
|
|
150
|
-
"cicy-code-linux-arm64": "2.3.
|
|
151
|
-
"cicy-code-windows-x64": "2.3.
|
|
147
|
+
"cicy-code-darwin-x64": "2.3.189",
|
|
148
|
+
"cicy-code-darwin-arm64": "2.3.189",
|
|
149
|
+
"cicy-code-linux-x64": "2.3.189",
|
|
150
|
+
"cicy-code-linux-arm64": "2.3.189",
|
|
151
|
+
"cicy-code-windows-x64": "2.3.189",
|
|
152
152
|
"cicy-mihomo-darwin-x64": "1.10.4",
|
|
153
153
|
"cicy-mihomo-darwin-arm64": "1.10.4",
|
|
154
154
|
"cicy-mihomo-linux-x64": "1.10.4",
|