From 69da8059fcc7669dffd396868cb44c4edc1b2440 Mon Sep 17 00:00:00 2001 From: qiqi Date: Wed, 18 Nov 2026 22:51:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(release):=20release.sh=20=E5=9B=9B=E4=B8=AA?= =?UTF-8?q?=E5=9D=91=20+=20=E9=87=8D=E6=96=B0=E7=94=9F=E6=88=90=E7=AB=99?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - --notes 用数组传参:原来 EXTRA="--notes $NOTES" 展开按空格拆词,说明被腰斩(线上只剩「…(插件」)。 - 下载页上传到 $NAS_DIR/download/:原来和首页同目录 scp,两个 index.html 互相覆盖,首页被下载页顶掉。 - 发布时跑 gen-site.js 并上传首页/插件页/plugins-index.json:否则包已新版、首页还写着「下载 v3.25.22」。 - 校验步骤超时 20s→120s 且失败显式报错:8.7MB 包走隧道回读会超时,set -e 下无声退出,看起来像发布成功。 同步重新生成 site/(首页 v3.25.23 / 8.3 MB、插件页 8 个含 browser)。 --- scripts/release.sh | 30 +++++++++++++++++++++--------- site/download/index.html | 12 ++++++++---- site/index.html | 30 +++++++++++++++--------------- site/plugins-index.json | 20 +++++++++++++++++++- site/plugins/index.html | 13 ++++++++++--- site/releases.json | 15 ++++++++++++++- 6 files changed, 87 insertions(+), 33 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index be7eb0b..3c052cc 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -35,21 +35,33 @@ SHA=$(shasum -a 256 "$DMG" | awk '{print $1}') BASE=$(basename "$DMG") REMOTE_REL="updates/$PLATFORM/$BASE" -EXTRA="" -if [ -n "$NOTES" ]; then EXTRA="--notes $NOTES"; fi +# 注意:必须用数组传参。旧写法 `EXTRA="--notes $NOTES"` 在 `$EXTRA` 展开时按空格拆词, +# 带空格的说明会被腰斩(v3.25.23 真实发生:线上 notes 只剩「…(插件」)。 +NOTES_ARG=() +if [ -n "$NOTES" ]; then NOTES_ARG=(--notes "$NOTES"); fi node scripts/update-releases.js --version "$VERSION" --platform "$PLATFORM" \ - --file "$REMOTE_REL" --size "$SIZE" --sha256 "$SHA" $EXTRA + --file "$REMOTE_REL" --size "$SIZE" --sha256 "$SHA" ${NOTES_ARG[@]+"${NOTES_ARG[@]}"} node scripts/gen-release-page.js +# 首页 / 插件页也带版本号与插件数(gen-site.js 渲染)——不重跑就会出现 +# 「包已经是新版、首页还写着下载 v3.25.22」(v3.25.23 真实发生)。 +node scripts/gen-site.js echo "→ 上传到 ${NAS_USER}@${NAS_HOST}:$NAS_DIR" -ssh -i "$SSH_KEY" -o BatchMode=yes "${NAS_USER}@${NAS_HOST}" "mkdir -p $NAS_DIR/updates/$PLATFORM" +ssh -i "$SSH_KEY" -o BatchMode=yes "${NAS_USER}@${NAS_HOST}" "mkdir -p $NAS_DIR/updates/$PLATFORM $NAS_DIR/download $NAS_DIR/plugins" scp -i "$SSH_KEY" -o BatchMode=yes "$DMG" "${NAS_USER}@${NAS_HOST}:$NAS_DIR/updates/$PLATFORM/" >/dev/null -scp -i "$SSH_KEY" -o BatchMode=yes site/releases.json site/index.html "${NAS_USER}@${NAS_HOST}:$NAS_DIR/" >/dev/null +# 下载页要落在 $NAS_DIR/download/,**不能**和首页一起 scp —— 两个文件都叫 index.html, +# 同目录展开时后者覆盖前者(v3.25.23 真实发生:首页被下载页顶掉)。 +scp -i "$SSH_KEY" -o BatchMode=yes site/releases.json site/index.html site/plugins-index.json "${NAS_USER}@${NAS_HOST}:$NAS_DIR/" >/dev/null +scp -i "$SSH_KEY" -o BatchMode=yes site/download/index.html "${NAS_USER}@${NAS_HOST}:$NAS_DIR/download/" >/dev/null +scp -i "$SSH_KEY" -o BatchMode=yes site/plugins/index.html "${NAS_USER}@${NAS_HOST}:$NAS_DIR/plugins/" >/dev/null ssh -i "$SSH_KEY" -o BatchMode=yes "${NAS_USER}@${NAS_HOST}" "chmod -R a+rX $NAS_DIR" echo "→ 校验公网" -CODE=$(curl -s -o /dev/null -m 20 -w '%{http_code}' "https://download.maqiart.eu.org/$REMOTE_REL") -SIZE2=$(curl -s -o /dev/null -m 40 -w '%{size_download}' "https://download.maqiart.eu.org/$REMOTE_REL") -echo " 页面 $(curl -s -o /dev/null -m 12 -w '%{http_code}' https://download.maqiart.eu.org/) 包 $CODE 远端 $SIZE2 B / 本地 $SIZE B" -[ "$CODE" = "200" ] && [ "$SIZE2" = "$SIZE" ] || { echo "✗ 校验失败"; exit 1; } +# 包是 8~9 MB,走隧道回读要几十秒:超时给短了 curl 直接非零退出, +# set -e 下会「无声退出」,看起来像发布成功(v3.25.23 真实发生)。 +CODE=$(curl -s -o /dev/null -m 120 -w '%{http_code}' "https://download.maqiart.eu.org/$REMOTE_REL") || CODE=000 +SIZE2=$(curl -s -o /dev/null -m 120 -w '%{size_download}' "https://download.maqiart.eu.org/$REMOTE_REL") || SIZE2=0 +PAGE_CODE=$(curl -s -o /dev/null -m 20 -w '%{http_code}' https://download.maqiart.eu.org/) || PAGE_CODE=000 +echo " 页面 $PAGE_CODE 包 $CODE 远端 $SIZE2 B / 本地 $SIZE B" +if [ "$CODE" != "200" ] || [ "$SIZE2" != "$SIZE" ]; then echo "✗ 校验失败"; exit 1; fi echo "✓ 发布完成:https://download.maqiart.eu.org/" \ No newline at end of file diff --git a/site/download/index.html b/site/download/index.html index 48718af..a15c596 100644 --- a/site/download/index.html +++ b/site/download/index.html @@ -54,13 +54,13 @@

下载

macOS · Apple Silicon
M1 / M2 / M3 / M4
-
版本 3.25.22 · 7.5 MB · .dmg
sha256 c6f17efa3e0cd720…
- 下载 +
版本 3.25.23 · 8.3 MB · .dmg
sha256 0b43d3324167326a…
+ 下载
macOS · Intel
x86_64
-
版本 3.25.22 · 7.8 MB · .dmg
sha256 2ff7fc9c196052b7…
- 下载 +
+ 暂未提供
Windows · x64
需要 WebView2
@@ -94,6 +94,10 @@

历史版本

+
+
3.25.23
应用内浏览器:独立窗口打开网页(插件 browser 1.0.0 上架市场),并修复浏览器窗口关不掉
+
2026-11-18
macOS · Apple Silicon
+
3.25.22
Intel 版:外观自定义扩展
2026-11-18
macOS · Apple Silicon / macOS · Intel
diff --git a/site/index.html b/site/index.html index 22e72de..4fc7aa7 100644 --- a/site/index.html +++ b/site/index.html @@ -2,7 +2,7 @@ Image Workbench · 本地优先的 AI 生图工作台 - +
-
+
- v3.25.22 · macOS / Windows · 数据在本地 + v3.25.23 · macOS / Windows · 数据在本地

本地优先的
AI 生图无限画布

用节点把「参考图 → 提示词 → 批量生成 → 图库」串成一条生产线。
图片、提示词、模型配置全部留在你自己的电脑里,插件按需安装。

支持 macOS 12+ 与 Windows 10 1803+ · 安装包约 7 MB · 无需登录
@@ -62,6 +62,12 @@
新建空白画布节点,用于分区分组
画布效率
+
+
🌐 +
应用内浏览器
v1.0.0 · 官方
+
独立窗口打开网页,可后退/刷新/关闭,不占用画布
+
浏览器效率
+
🖌️
标注 / 修图
v1.20.6 · 官方
@@ -80,21 +86,15 @@
风格提示词库与一键套用
提示词风格
-
-
🧾 -
白底图
v1.2.1 · 官方
-
批量生成电商白底图(800px)
-
电商出图
-
-
查看全部 7 个插件
+
查看全部 8 个插件

下载 Image Workbench

选你的平台。装过一次之后,以后在应用内「设置 → 通用 → 版本与更新」就能一键升级。

-
macOS · Apple Silicon
M1 / M2 / M3 / M4 · 7.5 MB · .dmg
-
macOS · Intel
x86_64 · 7.8 MB · .dmg
+
macOS · Apple Silicon
M1 / M2 / M3 / M4 · 8.3 MB · .dmg
+
macOS · Intel
暂未提供
Windows · x64
暂未提供
安装包未做 Apple 公证 / Windows 代码签名,首次打开需手动放行一次,细节见 下载页。
diff --git a/site/plugins-index.json b/site/plugins-index.json index 4ce06b1..d616776 100644 --- a/site/plugins-index.json +++ b/site/plugins-index.json @@ -1,6 +1,6 @@ { "version": 1, - "updatedAt": "2026-11-17T13:04:29.617Z", + "updatedAt": "2026-11-18T14:39:51.096Z", "plugins": [ { "id": "batch-export", @@ -38,6 +38,24 @@ "sha256": "67763893fa99c8fe1d8bcf640426f5bbc576abd35bcdc84c910b7b08f79964f9", "integrity": "sha256-Z3Y4k/qZyP4di89kBCb1u8V2q9NbzchMkQt7CPeZZPk=" }, + { + "id": "browser", + "name": "应用内浏览器", + "desc": "独立窗口打开网页,可后退/刷新/关闭,不占用画布", + "author": "official", + "icon": "🌐", + "color": "#eaf1fb", + "tags": [ + "浏览器", + "效率" + ], + "version": "1.0.0", + "apiVersion": 1, + "file": "plugins/plugin-browser.f1bcb5809c9a.js", + "size": 13833, + "sha256": "f1bcb5809c9a39496d28beebeef51049e58efd473d7080172d1b388b725d0959", + "integrity": "sha256-8by1gJyaOUltKL7r7vUQSeWO/Uc9cIAXLRs4i3JdCVk=" + }, { "id": "image-annotate", "name": "标注 / 修图", diff --git a/site/plugins/index.html b/site/plugins/index.html index 502798b..7746cd4 100644 --- a/site/plugins/index.html +++ b/site/plugins/index.html @@ -1,7 +1,7 @@ 插件市场 · Image Workbench - +

插件市场

-

共 7 个插件。安装方式:应用内 设置 → 插件 → 浏览,点「安装」后重启生效。

+

共 8 个插件。安装方式:应用内 设置 → 插件 → 浏览,点「安装」后重启生效。

@@ -28,6 +28,7 @@ + @@ -52,6 +53,12 @@
新建空白画布节点,用于分区分组
画布效率
+
+
🌐 +
应用内浏览器
v1.0.0 · 官方
+
独立窗口打开网页,可后退/刷新/关闭,不占用画布
+
浏览器效率
+
🖌️
标注 / 修图
v1.20.6 · 官方
diff --git a/site/releases.json b/site/releases.json index ef90af2..8c94518 100644 --- a/site/releases.json +++ b/site/releases.json @@ -1,8 +1,21 @@ { "app": "Image Workbench", "subtitle": "本地优先的 AI 生图无限画布 · 桌面版(Tauri v2)", - "updatedAt": "2026-11-18T13:53:56.154Z", + "updatedAt": "2026-11-18T14:50:16.732Z", "releases": [ + { + "version": "3.25.23", + "date": "2026-11-18", + "notes": "应用内浏览器:独立窗口打开网页(插件 browser 1.0.0 上架市场),并修复浏览器窗口关不掉", + "platforms": { + "darwin-aarch64": { + "file": "updates/darwin-aarch64/image-workbench_3.25.23_aarch64.dmg", + "size": 8692827, + "sha256": "0b43d3324167326acaddba9c710614ba37d34b23724edc644ea3f6f0542fdcc7", + "kind": "dmg" + } + } + }, { "version": "3.25.22", "date": "2026-11-18",