

本地优先的
AI 生图无限画布
用节点把「参考图 → 提示词 → 批量生成 → 图库」串成一条生产线。
图片、提示词、模型配置全部留在你自己的电脑里,插件按需安装。
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 @@


用节点把「参考图 → 提示词 → 批量生成 → 图库」串成一条生产线。
图片、提示词、模型配置全部留在你自己的电脑里,插件按需安装。
选你的平台。装过一次之后,以后在应用内「设置 → 通用 → 版本与更新」就能一键升级。
-