cicy-desktop 2.1.147 → 2.1.148
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.
|
@@ -172,37 +172,31 @@ jobs:
|
|
|
172
172
|
--repo "$GITHUB_REPOSITORY" --clobber
|
|
173
173
|
fi
|
|
174
174
|
|
|
175
|
-
#
|
|
176
|
-
#
|
|
177
|
-
#
|
|
178
|
-
-
|
|
175
|
+
# Lightweight app installer (~150MB): prebuilt ad-hoc-signed .app + install.command.
|
|
176
|
+
# No Apple cert (installer strips quarantine + re-ad-hoc-signs locally). Docker is
|
|
177
|
+
# NOT bundled — the app downloads + reuses it at runtime (keeps this small). For a
|
|
178
|
+
# fully-offline install, drop the docker base disk + cicy-code image next to
|
|
179
|
+
# install.command in a docker/ subdir and it'll stage them instead.
|
|
180
|
+
- name: Build app installer bundles (.app + installer, no docker)
|
|
179
181
|
continue-on-error: true # extra artifact — never fail the dmg/zip release
|
|
180
182
|
shell: bash
|
|
181
183
|
env:
|
|
182
184
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
183
185
|
run: |
|
|
184
186
|
set -euo pipefail
|
|
185
|
-
OSS="https://cicy-1372193042-cn.oss-cn-shanghai.aliyuncs.com"
|
|
186
187
|
VER="${{ steps.meta.outputs.version }}"
|
|
187
|
-
mkdir -p payload
|
|
188
|
-
# cicy-code image is amd64 for both arches (runs via rosetta on arm64) → fetch once.
|
|
189
|
-
curl -fSL "$OSS/images/cicy-code-latest.tar.gz" -o payload/cicy-code-latest.tar.gz
|
|
190
188
|
for ARCH in x64 arm64; do
|
|
191
|
-
[ "$ARCH" = x64 ] &&
|
|
192
|
-
# locate the .app for this arch (electron-builder leaves it under dist/mac*/)
|
|
189
|
+
WANT="$([ "$ARCH" = x64 ] && echo x86_64 || echo arm64)"
|
|
193
190
|
APP=""
|
|
194
191
|
for d in $(find dist -maxdepth 2 -type d -name "*.app"); do
|
|
195
|
-
if lipo -archs "$d/Contents/MacOS/"* 2>/dev/null | grep -qw "$
|
|
192
|
+
if lipo -archs "$d/Contents/MacOS/"* 2>/dev/null | grep -qw "$WANT"; then APP="$d"; break; fi
|
|
196
193
|
done
|
|
197
|
-
[ -n "$APP" ] || { echo "::warning::no $ARCH .app found, skipping
|
|
198
|
-
echo "
|
|
199
|
-
|
|
200
|
-
B="allinone-$ARCH"; rm -rf "$B"; mkdir -p "$B/docker"
|
|
194
|
+
[ -n "$APP" ] || { echo "::warning::no $ARCH .app found, skipping"; continue; }
|
|
195
|
+
echo "app installer $ARCH ← $APP"
|
|
196
|
+
B="appbundle-$ARCH"; rm -rf "$B"; mkdir -p "$B"
|
|
201
197
|
cp -R "$APP" "$B/CiCy Desktop.app"
|
|
202
|
-
cp payload/cicy-code-latest.tar.gz "$B/docker/"
|
|
203
|
-
cp "payload/ubuntu-2404-$DTAG-docker.raw.gz" "$B/docker/"
|
|
204
198
|
cp scripts/mac-allinone/install.command "$B/"; chmod +x "$B/install.command"
|
|
205
|
-
OUT="cicy-desktop-
|
|
199
|
+
OUT="cicy-desktop-app-$VER-$ARCH.tar.gz"
|
|
206
200
|
tar -czf "$OUT" -C "$B" .
|
|
207
201
|
gh release upload "${{ steps.meta.outputs.tag }}" "$OUT" --repo "$GITHUB_REPOSITORY" --clobber
|
|
208
202
|
echo "uploaded $OUT ($(du -h "$OUT" | cut -f1))"
|
package/package.json
CHANGED
|
@@ -45,15 +45,23 @@ xattr -cr "$DEST_APP" 2>/dev/null || true
|
|
|
45
45
|
codesign --force --deep --sign - "$DEST_APP" 2>/dev/null || \
|
|
46
46
|
echo " (codesign 警告可忽略,quarantine 已清即可打开)"
|
|
47
47
|
|
|
48
|
-
# ── 3) 预暂存 docker 包
|
|
49
|
-
|
|
50
|
-
mkdir -p "$HOME/cicy-ai/colima" "$HOME/Downloads"
|
|
48
|
+
# ── 3) (可选)预暂存 docker 包 —— 仅当 bundle 里带了 docker/ 时(全离线包)。
|
|
49
|
+
# app-only 包没有这个目录:跳过,docker 由 app 运行时联网装(一次,之后复用)。
|
|
51
50
|
DISK_SRC="$HERE/docker/ubuntu-2404-$DTAG-docker.raw.gz"
|
|
52
51
|
IMG_SRC="$HERE/docker/cicy-code-latest.tar.gz"
|
|
53
|
-
|
|
54
|
-
[ -f "$
|
|
52
|
+
STAGED=0
|
|
53
|
+
if [ -f "$DISK_SRC" ] || [ -f "$IMG_SRC" ]; then
|
|
54
|
+
echo "==> 检测到离线 docker 包,预暂存以便零下载 …"
|
|
55
|
+
mkdir -p "$HOME/cicy-ai/colima" "$HOME/Downloads"
|
|
56
|
+
[ -f "$DISK_SRC" ] && ditto "$DISK_SRC" "$HOME/cicy-ai/colima/ubuntu-2404-$DTAG-docker.raw.gz" && echo " 基础盘已就位($DTAG)" && STAGED=1
|
|
57
|
+
[ -f "$IMG_SRC" ] && ditto "$IMG_SRC" "$HOME/Downloads/cicy-code-latest.tar.gz" && echo " cicy-code 镜像已就位" && STAGED=1
|
|
58
|
+
fi
|
|
55
59
|
|
|
56
60
|
echo ""
|
|
57
61
|
echo "✅ 安装完成 —— 打开「启动台」或 /Applications 里的「$APP_NAME」。"
|
|
58
|
-
|
|
62
|
+
if [ "$STAGED" = 1 ]; then
|
|
63
|
+
echo " docker 运行环境已预置,首次点安装直接复用、不下载。"
|
|
64
|
+
else
|
|
65
|
+
echo " docker 首次点安装会联网下载运行环境(之后复用,不再重下)。"
|
|
66
|
+
fi
|
|
59
67
|
open "$DEST_APP" || true
|