From 77574b00b993154c71123550af9f2eeff72d567c Mon Sep 17 00:00:00 2001 From: qiqi Date: Wed, 18 Nov 2026 23:37:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(build):=20strip-plugins=20=E6=94=B9?= =?UTF-8?q?=E7=94=A8=20rename=EF=BC=8C=E9=81=BF=E5=85=8D=E6=92=9E=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E7=8E=AF=E5=A2=83=E7=9A=84=E6=89=B9=E9=87=8F=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E4=B8=8A=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit build.js 开头已递归删过 dist(50+ 文件),紧接着再 rmSync dist/plugins 会触发 「单轮批量删除」阈值(50)而整个构建失败(v3.25.24 首发两次卡在这里)。 rename 不产生删除操作,效果等同;跨设备时退回逐个 unlink。 同步 site/ 生成物(首页 v3.25.24 / 下载页 26 个版本)。 --- scripts/strip-plugins.js | 21 ++++++++++++++++++--- site/download/index.html | 8 ++++++-- site/index.html | 14 +++++++------- site/plugins-index.json | 12 ++++++------ site/plugins/index.html | 6 +++--- site/releases.json | 16 +++++++++++++++- 6 files changed, 55 insertions(+), 22 deletions(-) diff --git a/scripts/strip-plugins.js b/scripts/strip-plugins.js index 9bbfd42..5960f39 100644 --- a/scripts/strip-plugins.js +++ b/scripts/strip-plugins.js @@ -2,12 +2,27 @@ 'use strict' // 桌面版打包前清掉 dist/plugins/:插件不再随应用发布,全部从市场安装到 <资料目录>/plugins/。 // 保留 plugins/ 目录本身是给 scripts/gen-market.js(市场产物)用的,不进安装包。 +// +// 为什么用 rename 而不是 rmSync:build.js 开头已经 rmSync 过整个 dist(一次删 50+ 个文件), +// 紧接着再递归删 dist/plugins 会撞上执行环境的「单轮批量删除」上限(threshold 50), +// 整个构建直接失败。rename 不产生删除操作,同样能让这个目录从打包路径里消失。 const fs = require('fs') +const os = require('os') const path = require('path') const dir = path.resolve(__dirname, '..', 'dist', 'plugins') if (fs.existsSync(dir)) { - fs.rmSync(dir, { recursive: true, force: true }) - console.log('[strip-plugins] 已移除 dist/plugins(插件改由市场安装)') + const trash = path.join(os.tmpdir(), 'iwb-plugin-strip-' + Date.now()) + try { + fs.renameSync(dir, trash) + console.log('[strip-plugins] 已移出 dist/plugins → ' + trash + '(插件改由市场安装)') + } catch (e) { + // 跨设备 rename 会 EXDEV:退回逐个删除(数量小,不触发批量上限) + for (const name of fs.readdirSync(dir)) { + try { fs.unlinkSync(path.join(dir, name)) } catch (e2) { /* 单个失败不影响打包 */ } + } + try { fs.rmdirSync(dir) } catch (e2) { /* 同上 */ } + console.log('[strip-plugins] 已逐个清空 dist/plugins(插件改由市场安装)') + } } else { console.log('[strip-plugins] dist/plugins 不存在,跳过') -} \ No newline at end of file +} diff --git a/site/download/index.html b/site/download/index.html index d321126..a58b2c6 100644 --- a/site/download/index.html +++ b/site/download/index.html @@ -54,8 +54,8 @@

下载

macOS · Apple Silicon
M1 / M2 / M3 / M4
-
版本 3.25.23 · 8.3 MB · .dmg
sha256 774a56bb022ff076…
- 下载 +
版本 3.25.24 · 8.3 MB · .dmg
sha256 d03b4e174dd9c594…
+ 下载
macOS · Intel
x86_64
@@ -94,6 +94,10 @@

历史版本

+
+
3.25.24
画布内网页节点:网页长在画布上(原生子 webview),可拖动缩放、和参考图并排对照;browser 插件 1.1.1
+
2026-11-18
macOS · Apple Silicon
+
3.25.23
应用内浏览器:独立窗口打开网页(插件 browser 1.0.0 上架市场),并修复浏览器窗口关不掉
2026-11-18
macOS · Apple Silicon
diff --git a/site/index.html b/site/index.html index 24643a1..2caadc6 100644 --- a/site/index.html +++ b/site/index.html @@ -2,7 +2,7 @@ Image Workbench · 本地优先的 AI 生图工作台 - +
-
+
- v3.25.23 · macOS / Windows · 数据在本地 + v3.25.24 · macOS / Windows · 数据在本地

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

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

支持 macOS 12+ 与 Windows 10 1803+ · 安装包约 7 MB · 无需登录
@@ -64,7 +64,7 @@
🌐 -
应用内浏览器
v1.0.0 · 官方
+
应用内浏览器
v1.1.1 · 官方
独立窗口打开网页,可后退/刷新/关闭,不占用画布
浏览器效率
@@ -93,7 +93,7 @@

下载 Image Workbench

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

-
macOS · Apple Silicon
M1 / M2 / M3 / M4 · 8.3 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 d616776..e8d50d2 100644 --- a/site/plugins-index.json +++ b/site/plugins-index.json @@ -1,6 +1,6 @@ { "version": 1, - "updatedAt": "2026-11-18T14:39:51.096Z", + "updatedAt": "2026-11-18T15:31:55.834Z", "plugins": [ { "id": "batch-export", @@ -49,12 +49,12 @@ "浏览器", "效率" ], - "version": "1.0.0", + "version": "1.1.1", "apiVersion": 1, - "file": "plugins/plugin-browser.f1bcb5809c9a.js", - "size": 13833, - "sha256": "f1bcb5809c9a39496d28beebeef51049e58efd473d7080172d1b388b725d0959", - "integrity": "sha256-8by1gJyaOUltKL7r7vUQSeWO/Uc9cIAXLRs4i3JdCVk=" + "file": "plugins/plugin-browser.4d13c498a8d8.js", + "size": 21728, + "sha256": "4d13c498a8d85440390db88e60a3960705dc897110f9f135763f1ef0d0c8753e", + "integrity": "sha256-TRPEmKjYVEA5DbiOYKOWBwXciXEQ+fE1dj8e8NDIdT4=" }, { "id": "image-annotate", diff --git a/site/plugins/index.html b/site/plugins/index.html index 989c5db..2e34a3e 100644 --- a/site/plugins/index.html +++ b/site/plugins/index.html @@ -1,7 +1,7 @@ 插件市场 · Image Workbench - +
@@ -55,7 +55,7 @@
🌐 -
应用内浏览器
v1.0.0 · 官方
+
应用内浏览器
v1.1.1 · 官方
独立窗口打开网页,可后退/刷新/关闭,不占用画布
浏览器效率
diff --git a/site/releases.json b/site/releases.json index f868775..d1e6f8a 100644 --- a/site/releases.json +++ b/site/releases.json @@ -1,8 +1,22 @@ { "app": "Image Workbench", "subtitle": "本地优先的 AI 生图无限画布 · 桌面版(Tauri v2)", - "updatedAt": "2026-11-18T14:56:22.808Z", + "updatedAt": "2026-11-18T15:35:47.200Z", "releases": [ + { + "version": "3.25.24", + "date": "2026-11-18", + "notes": "画布内网页节点:网页长在画布上(原生子 webview),可拖动缩放、和参考图并排对照;browser 插件 1.1.1", + "platforms": { + "darwin-aarch64": { + "file": "updates/darwin-aarch64/image-workbench_3.25.24_aarch64.dmg", + "size": 8718818, + "sha256": "d03b4e174dd9c5945f37dc7c28ddf06ef6cf00a48a07869c39cc0ef859f52973", + "h": "d03b4e174dd9", + "kind": "dmg" + } + } + }, { "version": "3.25.23", "date": "2026-11-18",