cicy-desktop 2.1.255 → 2.1.257

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.
@@ -9,6 +9,10 @@ on:
9
9
  permissions:
10
10
  contents: write
11
11
 
12
+ concurrency:
13
+ group: cicy-desktop-release-linux
14
+ cancel-in-progress: true
15
+
12
16
  jobs:
13
17
  build-linux-app:
14
18
  runs-on: ubuntu-latest
@@ -60,23 +64,14 @@ jobs:
60
64
  # hook (scripts/build-homepage.cjs) right before `npm run build:linux` below,
61
65
  # so the AppImage can never ship a stale homepage. No explicit step needed.
62
66
 
63
- - name: Build Linux app (deb + AppImage)
67
+ - name: Build Linux AppImage
64
68
  shell: bash
65
69
  env:
66
70
  GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67
71
  CICY_OBFUSCATE: "1" # 发版混淆 JS(prebuild 主进程 + Vite 渲染层),仅 release CI
68
72
  run: |
69
73
  set -euo pipefail
70
- npm run build:linux -- --publish always
71
-
72
- - name: Upload Linux artifacts
73
- uses: actions/upload-artifact@v4
74
- with:
75
- name: cicy-desktop-linux
76
- path: |
77
- dist/*.deb
78
- dist/*.AppImage
79
- dist/latest-linux.yml
74
+ npm run build:linux -- --x64 --config.linux.target=AppImage --publish always
80
75
 
81
76
  # AppImage + 版本指针传到 OSS —— app-updater 现已全走 OSS(不碰 GitHub),linux 也要在
82
77
  # OSS 上有 versioned AppImage(CiCy-Desktop-<ver>.AppImage)和自己的指针 linux-latest-version.txt。
@@ -9,6 +9,10 @@ on:
9
9
  permissions:
10
10
  contents: write
11
11
 
12
+ concurrency:
13
+ group: cicy-desktop-release-macos
14
+ cancel-in-progress: true
15
+
12
16
  jobs:
13
17
  build-mac-app:
14
18
  runs-on: macos-latest
@@ -97,7 +101,7 @@ jobs:
97
101
  done
98
102
  iconutil -c icns build/icon.iconset -o build/logo.icns || { echo "::warning::iconutil failed"; exit 0; }
99
103
 
100
- - name: Build macOS app (dmg + zip, unsigned)
104
+ - name: Build macOS app directories (unsigned)
101
105
  # CSC_IDENTITY_AUTO_DISCOVERY=false stops electron-builder from probing the
102
106
  # runner keychain for a cert it does not have; combined with
103
107
  # build.mac.identity=null in package.json this produces a clean unsigned
@@ -111,27 +115,16 @@ jobs:
111
115
  run: |
112
116
  set -euo pipefail
113
117
  rm -rf dist
114
- # Build BOTH arches: --arm64 (Apple Silicon) AND --x64 (Intel). The runner
115
- # is arm64 and electron-builder cross-builds x64, so Intel Macs get a NATIVE
116
- # dmg instead of being forced onto the slow `npx` electron path (the repo had
117
- # only arm64 dmgs, so x86_64 Macs had no installer). cicy-code sidecar is
118
- # already built for darwin amd64 + arm64 above.
118
+ # Build BOTH native app directories, then package only the PKGs consumed by
119
+ # the updater/download page. Avoiding dmg/zip saves macOS runner time and
120
+ # duplicate release storage.
119
121
  if [ -f build/logo.icns ]; then
120
- npm run build:mac -- --arm64 --x64 --config.mac.icon=build/logo.icns --publish always
122
+ npm run build:mac -- --dir --arm64 --x64 --config.mac.icon=build/logo.icns --publish never
121
123
  else
122
124
  echo "::warning::build/logo.icns missing — using default Electron icon"
123
- npm run build:mac -- --arm64 --x64 --publish always
125
+ npm run build:mac -- --dir --arm64 --x64 --publish never
124
126
  fi
125
127
 
126
- - name: Upload macOS artifacts
127
- uses: actions/upload-artifact@v4
128
- with:
129
- name: cicy-desktop-mac
130
- path: |
131
- dist/*.dmg
132
- dist/*.zip
133
- if-no-files-found: error
134
-
135
128
  - name: Resolve release version
136
129
  id: meta
137
130
  shell: bash
@@ -140,7 +133,7 @@ jobs:
140
133
  echo "version=${version}" >> "$GITHUB_OUTPUT"
141
134
  echo "tag=v${version}" >> "$GITHUB_OUTPUT"
142
135
 
143
- - name: Create GitHub release (idempotent)
136
+ - name: Ensure draft GitHub release exists
144
137
  shell: bash
145
138
  env:
146
139
  GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -150,30 +143,10 @@ jobs:
150
143
  --title "CiCy Desktop v${{ steps.meta.outputs.version }}" \
151
144
  --target "$GITHUB_SHA" \
152
145
  --generate-notes \
153
- --latest \
146
+ --draft \
154
147
  2>/dev/null || echo "release already exists, continuing"
155
148
 
156
- - name: Publish macOS assets (dmg + zip + latest-mac.yml)
157
- shell: bash
158
- env:
159
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
160
- CSC_IDENTITY_AUTO_DISCOVERY: "false"
161
- run: |
162
- gh release upload "${{ steps.meta.outputs.tag }}" dist/*.dmg dist/*.zip \
163
- --repo "$GITHUB_REPOSITORY" --clobber
164
- # Also upload latest-mac.yml generated by --publish always into dist/
165
- if ls dist/latest-mac.yml 2>/dev/null; then
166
- gh release upload "${{ steps.meta.outputs.tag }}" dist/latest-mac.yml \
167
- --repo "$GITHUB_REPOSITORY" --clobber
168
- fi
169
-
170
- # Lightweight app installer (~150MB): prebuilt ad-hoc-signed .app + install.command.
171
- # No Apple cert (installer strips quarantine + re-ad-hoc-signs locally). Docker is
172
- # NOT bundled — the app downloads + reuses it at runtime (keeps this small). For a
173
- # fully-offline install, drop the docker base disk + cicy-code image next to
174
- # install.command in a docker/ subdir and it'll stage them instead.
175
- - name: Build app installer bundles (.app + installer, no docker)
176
- continue-on-error: true # extra artifact — never fail the dmg/zip release
149
+ - name: Build and publish PKG installers
177
150
  shell: bash
178
151
  env:
179
152
  GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -189,15 +162,8 @@ jobs:
189
162
  bin="$(find "$d/Contents/MacOS" -maxdepth 1 -type f | head -1)"
190
163
  if lipo -archs "$bin" 2>/dev/null | grep -qw "$WANT"; then APP="$d"; break; fi
191
164
  done < <(find dist -maxdepth 2 -type d -name "*.app" -print0)
192
- [ -n "$APP" ] || { echo "::warning::no $ARCH .app found, skipping"; continue; }
193
- echo "app installer $ARCH ← $APP"
194
- B="appbundle-$ARCH"; rm -rf "$B"; mkdir -p "$B"
195
- cp -R "$APP" "$B/CiCy Desktop.app"
196
- cp scripts/mac-allinone/install.command "$B/"; chmod +x "$B/install.command"
197
- OUT="cicy-desktop-app-$VER-$ARCH.tar.gz"
198
- tar -czf "$OUT" -C "$B" .
199
- gh release upload "${{ steps.meta.outputs.tag }}" "$OUT" --repo "$GITHUB_REPOSITORY" --clobber
200
- echo "uploaded $OUT ($(du -h "$OUT" | cut -f1))"
165
+ [ -n "$APP" ] || { echo "::error::no $ARCH .app found"; exit 1; }
166
+ echo "pkg $ARCH ← $APP"
201
167
 
202
168
  # Native .pkg installer (right-click Open once; the postinstall ad-hoc-signs
203
169
  # + de-quarantines the installed app so it opens with no Apple cert).
@@ -215,13 +181,11 @@ jobs:
215
181
  pkgbuild --analyze --root "$ROOT" "$PLIST"
216
182
  /usr/libexec/PlistBuddy -c "Set :0:BundleIsRelocatable false" "$PLIST" 2>/dev/null \
217
183
  || plutil -replace 0.BundleIsRelocatable -bool NO "$PLIST" || true
218
- if pkgbuild --root "$ROOT" --component-plist "$PLIST" --scripts "$SCR" \
219
- --identifier com.cicy.desktop --version "$VER" --install-location / "$PKG"; then
220
- gh release upload "${{ steps.meta.outputs.tag }}" "$PKG" --repo "$GITHUB_REPOSITORY" --clobber
221
- echo "uploaded $PKG ($(du -h "$PKG" | cut -f1))"
222
- else
223
- echo "::warning::pkgbuild failed for $ARCH (other arch unaffected)"
224
- fi
184
+ pkgbuild --root "$ROOT" --component-plist "$PLIST" --scripts "$SCR" \
185
+ --identifier com.cicy.desktop --version "$VER" --install-location / "$PKG"
186
+ gh release upload "${{ steps.meta.outputs.tag }}" "$PKG" \
187
+ --repo "$GITHUB_REPOSITORY" --clobber
188
+ echo "uploaded $PKG ($(du -h "$PKG" | cut -f1))"
225
189
  done
226
190
 
227
191
  # Publish the .pkg installers to OSS (CN-fast). GitHub release downloads stall from
@@ -10,6 +10,10 @@ on:
10
10
  - 'v*'
11
11
  workflow_dispatch: {}
12
12
 
13
+ concurrency:
14
+ group: cicy-desktop-release-npm
15
+ cancel-in-progress: true
16
+
13
17
  jobs:
14
18
  publish:
15
19
  runs-on: ubuntu-latest
@@ -9,6 +9,10 @@ on:
9
9
  permissions:
10
10
  contents: write
11
11
 
12
+ concurrency:
13
+ group: cicy-desktop-release-windows
14
+ cancel-in-progress: true
15
+
12
16
  jobs:
13
17
  build-windows-exe:
14
18
  runs-on: windows-latest
@@ -93,13 +97,6 @@ jobs:
93
97
  npm run build:win -- --publish always
94
98
  }
95
99
 
96
- - name: Upload EXE artifact
97
- uses: actions/upload-artifact@v4
98
- with:
99
- name: cicy-desktop-windows-exe
100
- path: dist/*.exe
101
- if-no-files-found: error
102
-
103
100
  # 推 exe 到 OSS。三件事(不再是"永远一个版本"):
104
101
  # 1) 带版本号的永久副本 releases/cicy-desktop-<version>.exe — 历史 / 指定版本 / 回滚
105
102
  # 2) latest 指针 releases/cicy-desktop-latest.exe — 只前进:本次版本 < 已发布版本(更旧的
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cicy-desktop",
3
- "version": "2.1.255",
3
+ "version": "2.1.257",
4
4
  "description": "CiCy - AI-powered operating system browser",
5
5
  "main": "src/main.js",
6
6
  "bin": {
@@ -139,10 +139,10 @@
139
139
  "//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 着无害。",
140
140
  "optionalDependencies": {
141
141
  "electron": "41.0.3",
142
- "cicy-code-darwin-x64": "2.3.313",
143
- "cicy-code-darwin-arm64": "2.3.313",
144
- "cicy-code-linux-x64": "2.3.313",
145
- "cicy-code-linux-arm64": "2.3.313",
142
+ "cicy-code-darwin-x64": "2.3.315",
143
+ "cicy-code-darwin-arm64": "2.3.315",
144
+ "cicy-code-linux-x64": "2.3.315",
145
+ "cicy-code-linux-arm64": "2.3.315",
146
146
  "cicy-code-windows-x64": "2.3.193",
147
147
  "cicy-mihomo-darwin-x64": "1.10.4",
148
148
  "cicy-mihomo-darwin-arm64": "1.10.4",
@@ -136,10 +136,16 @@ class PanelCells {
136
136
  const push = () => {
137
137
  let url = "", title = "";
138
138
  try { url = wc.getURL(); title = wc.getTitle(); } catch (e) {}
139
- this.sendState({ id: cellId, url, title, loading: false, wcId: wc.id });
139
+ // did-navigate / page-title-updated commonly fire while the document is
140
+ // still loading. Hard-coding false here hid the spinner immediately after
141
+ // did-start-loading; report the BrowserView's actual state instead.
142
+ let loading = false;
143
+ try { loading = wc.isLoading(); } catch (e) {}
144
+ this.sendState({ id: cellId, url, title, loading, wcId: wc.id });
140
145
  };
141
146
  wc.on("did-start-loading", () => this.sendState({ id: cellId, loading: true, wcId: wc.id }));
142
147
  wc.on("did-stop-loading", push);
148
+ wc.on("did-fail-load", push);
143
149
  wc.on("did-navigate", push);
144
150
  wc.on("did-navigate-in-page", push);
145
151
  wc.on("page-title-updated", push);
@@ -26,8 +26,12 @@
26
26
  .native-cells .cell,.native-cells .divider{transition:none}
27
27
  .cell.dragging-layout{transition:none}
28
28
  .cell__head{flex:0 0 34px;display:flex;align-items:center;gap:6px;padding:0 6px 0 10px;background:var(--head);border-bottom:1px solid var(--line);-webkit-user-select:none;user-select:none}
29
- .cell__spin{flex:0 0 12px;width:12px;height:12px;border:2px solid rgba(255,255,255,.18);border-top-color:var(--accent);border-radius:50%;animation:sp .7s linear infinite;display:none}
30
- .cell.loading .cell__spin{display:block}
29
+ /* Reload and loading share one fixed button slot: loading swaps the glyph in
30
+ place, so no toolbar element moves and no extra padding is needed. */
31
+ .reload-btn{position:relative}
32
+ .reload-btn .cell__spin{position:absolute;width:12px;height:12px;border:2px solid rgba(255,255,255,.18);border-top-color:var(--accent);border-radius:50%;animation:sp .7s linear infinite;visibility:hidden}
33
+ .cell.loading .reload-btn>svg{visibility:hidden}
34
+ .cell.loading .reload-btn .cell__spin{visibility:visible}
31
35
  @keyframes sp{to{transform:rotate(360deg)}}
32
36
  .cell__url{flex:1;min-width:0;height:24px;padding:0 10px;background:#101012;border:1px solid var(--line);border-radius:12px;color:var(--fg);font-size:12px;outline:none;-webkit-user-select:text;user-select:text}
33
37
  .cell__url:focus{border-color:var(--accent);background:#0d0d10}
@@ -639,18 +643,25 @@
639
643
  url.value = leaf.url || '';
640
644
  url.addEventListener('keydown', (e) => {
641
645
  if (e.key !== 'Enter') return;
646
+ // Enter during an IME composition commits the composing text; navigating
647
+ // and blurring in that same event makes Chromium commit it a second time
648
+ // (e.g. "chatgpt" → "chatgptchatgpt"). Let the IME finish first; the
649
+ // following Enter performs navigation, matching a normal browser omnibox.
650
+ if (e.isComposing || e.keyCode === 229) return;
651
+ e.preventDefault();
642
652
  const u = normalizeUrl(url.value);
643
653
  if (u) { setCellUrl(leaf.id, u); url.blur(); }
644
654
  });
645
655
  url.addEventListener('focus', () => url.select());
646
- head.appendChild(spin);
647
656
  head.appendChild(service);
648
657
  head.appendChild(profile);
649
658
  head.appendChild(url);
650
- head.appendChild(btn(I.reload, '刷新', '', () => {
659
+ const reload = btn(I.reload, '刷新', 'reload-btn', () => {
651
660
  if (NATIVE) { try { window.panelAPI.reload(leaf.id); } catch (e) {} return; }
652
661
  const c = cells.get(leaf.id); try { c && c.wv && c.wv.reload(); } catch (e) {}
653
- }));
662
+ });
663
+ reload.appendChild(spin);
664
+ head.appendChild(reload);
654
665
  head.appendChild(btn(I.splitR, '右分屏', '', () => splitLeaf(leaf.id, 'row')));
655
666
  head.appendChild(btn(I.splitD, '下分屏', '', () => splitLeaf(leaf.id, 'col')));
656
667
  head.appendChild(btn(I.close, '关闭', 'close', () => closeLeaf(leaf.id)));