Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e453b769fd | ||
|
|
d4815736ad | ||
|
|
9943e999c5 | ||
|
|
057e78ab71 | ||
|
|
61506cc39a | ||
|
|
24fdb0bca6 |
No files matched your search
@@ -16,6 +16,19 @@
|
||||
> 3. 核验正式地址版本 → 之后才移动 `stable` / `stable-verified-<日期>` 标签、更新本 CHANGELOG、写 GitHub Release(`gh release create`)。
|
||||
> 测试发现问题 → 改 → 再 `deploy:test`,正式环境不受影响。回滚点 `git reset --hard stable`。
|
||||
|
||||
## v3.26.104(2026-11-26)移除 PWA 图标面 + Windows 构建文档订正
|
||||
|
||||
- **构建修复**:根目录 `favicon.svg` / `icon-192.png` / `icon-512.png` / `apple-touch-icon.png` / `manifest.webmanifest` 已删除;`scripts/build.js` 不再拷贝/引用这些文件,避免 `beforeBuildCommand` 因 ENOENT 让 `app:build` 直接失败。
|
||||
- **保留 `sw.js`**:它不是纯 PWA 安装面,仍负责版本更新检测与 `/__iwb_cache__` 图片缓存直出;删了会破图/丢更新提示。
|
||||
- `scripts/check-dist.js` 新增断言:PWA 图标/manifest 不得进 dist、index.html 不得引用、sw.js 必须存在。
|
||||
- **Windows 文档订正**:`WIN_BUILD_SPEC.md §3` 改为无更新私钥时的正确构建命令(临时 `createUpdaterArtifacts:false` config,不再用会失败的 `npm run app:build`);Cargo 版本改用 PowerShell `Select-String`;win remote 统一为 `origin`;`AI-HANDOFF-WINDOWS.md` 更新为当前 `latest-windows.json` 更新源事实,并修正旧装机兼容说明与日志路径。
|
||||
|
||||
## v3.26.103(2026-11-26)相册重选文件夹与缩略图缓存自愈
|
||||
|
||||
- 相册插件 **1.1.5**:重选同一文件夹时按归一化路径**就地更新**,不再追加重复项(旧实现把坏格留在前面、重复项排到后面,看起来就是“重选也不出缩略图”);同时清 missing、删旧缩略图缓存并强制重读原图。
|
||||
- 缩略图 `<img onerror>` 增加一次绕过坏缓存的重读;重选后旧图可自愈。
|
||||
- Windows 3.26.103 同时包含 3.26.102 的 `{__file}` fs 授权持久化/启动复授权修复。
|
||||
|
||||
## v3.26.102(2026-11-26)相册外部路径重启复授权
|
||||
|
||||
- **修复 Windows 重启后相册旧图在组合节点变感叹号**:相册 `{__file}` 只存路径,Tauri fs scope 是运行时授权,重启后失效;缩略图有插件缓存还能显示,组合/参考图读原图失败,只有本次新导入的图正常。
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.8 KiB |
+19
-16
@@ -1,14 +1,14 @@
|
||||
# 给 Windows 端 AI 的协作说明(Image Workbench 桌面版)
|
||||
|
||||
> 这份文档是给 **Windows 构建端的 AI agent** 读的。读完你应理解:项目架构、为什么 Windows 之前开不了网页、发布链路、你的职责边界、这次踩过的坑。
|
||||
> 详细打包步骤见仓库 `docs/WIN_BUILD_SPEC.md`(gitea/main)。本文是「认知 + 边界」,那份是「操作清单」。
|
||||
> 详细打包步骤见仓库 `docs/WIN_BUILD_SPEC.md`(main;mac 的 remote 叫 `gitea`,win 叫 `origin`)。本文是「认知 + 边界」,那份是「操作清单」。
|
||||
|
||||
---
|
||||
|
||||
## 1. 项目是什么
|
||||
|
||||
- Image Workbench:Tauri v2 桌面应用(本地优先的 AI 生图无限画布)。
|
||||
- 仓库:`/Users/qiqi/open/github/image-workbench-desktop`(mac 端),git remote 名为 `gitea`。
|
||||
- 仓库:`/Users/qiqi/open/github/image-workbench-desktop`(mac 端),mac 的 git remote 名为 `gitea`;win 构建机的 remote **只有 `origin`**,命令别照抄 `gitea`。
|
||||
- 分发:自建 NAS,公网 `https://download.maqiart.eu.org`,根目录 `/vol8/web/iwb-download`。
|
||||
- 版本线:以 `package.json` 为准(当前 `3.26.x`);历史 `3.25.x` 仅示例。**注意**:仓库里最高的 git tag `v3.87.65` 是历史遗留线,semver 更大但**不是**最新——判断最新版看 `package.json` / `CHANGELOG.md` 顶条 / `tauri.conf.json`,永远别按最高 tag。
|
||||
|
||||
@@ -38,8 +38,8 @@
|
||||
|
||||
```
|
||||
mac 改源码 → mac commit → mac `RELEASE=1 git push gitea main`
|
||||
→ win `git fetch gitea && git reset --hard gitea/main`
|
||||
→ win 构建 setup.exe(npm ci && npm run app:build)
|
||||
→ win `git fetch origin && git reset --hard origin/main`
|
||||
→ win 构建 setup.exe(npm ci + WIN_BUILD_SPEC.md §3 的临时 nosign config)
|
||||
→ win 自测矩阵通过
|
||||
→ win 把 setup.exe 放到 NAS `_inbox/`(权限700,公网403)
|
||||
→ 通知 mac:版本 + size + sha256
|
||||
@@ -54,9 +54,9 @@ mac 改源码 → mac commit → mac `RELEASE=1 git push gitea main`
|
||||
## 4. 你的职责边界(AI 必须遵守)
|
||||
|
||||
✅ 你该做:
|
||||
- `git reset --hard gitea\main` 到最新
|
||||
- `git reset --hard origin/main` 到最新
|
||||
- 核对三处版本一致(package.json / tauri.conf.json / Cargo.toml)+ 确认 lib.rs 里 6 个 `async fn canvas_webview_*` 都在
|
||||
- `npm ci && npm run app:build`
|
||||
- `npm ci`,再按 `WIN_BUILD_SPEC.md §3` 用临时 nosign config 构建(`npm run app:build` 会因缺少更新私钥失败)
|
||||
- 跑自测矩阵(尤其第 2 项:画布网页节点能打开、不卡死)
|
||||
- 把 `image-workbench_<version>_x64-setup.exe` 放 NAS `_inbox/`
|
||||
- 记录 size + SHA256,通知 mac 端
|
||||
@@ -65,7 +65,7 @@ mac 改源码 → mac commit → mac `RELEASE=1 git push gitea main`
|
||||
- **自己签名 / 生成 .sig** —— 更新私钥只在 mac(`~/.config/iwb-updater.key`),win 签出来的 key ID 与项目公钥 `17ae57d0ac9f15f1` 不配对,客户端会拒绝安装(这次 win 放上来的临时 .sig 就被 mac 忽略重签了)
|
||||
- 改 `src-tauri\src\lib.rs` / `Cargo.toml` / `tauri.conf.json` 等任何源码
|
||||
- 跑 `cargo fmt` 或让 IDE 保存即格式化
|
||||
- `git add -A` / `git push gitea main`(push 是 mac 端 `RELEASE=1` 的单独动作)
|
||||
- `git add -A` / `git push`(push 是 mac 端 `RELEASE=1` 的单独动作;win 不 push)
|
||||
- 把 `target\`、`node_modules\`、`.msi`、`.sig` 提交进 git
|
||||
|
||||
---
|
||||
@@ -73,8 +73,8 @@ mac 改源码 → mac commit → mac `RELEASE=1 git push gitea main`
|
||||
## 5. 这次踩过的坑(让你少走弯路)
|
||||
|
||||
1. **win 自签 .sig 无效**:win 端没有正式私钥,签出来的 sig keyid 对不上,白签。只交 setup.exe,签名交给 mac。
|
||||
2. **`latest.json` 平台解耦 bug**:项目想做 mac/win 独立更新清单(mac→`latest.json`,win→`latest-windows.json`),但**应用的 `tauri.conf.json` endpoints 只配了 `latest.json`**,且 mac 发布脚本 `publish-update.sh` 写清单时**只硬编码 darwin 两平台、丢弃 windows 条目**。结果:win 用户的应用拉 `latest.json` 找不到 `windows-x86_64` → 更新无结果。**临时修**:mac 端把 windows 条目合并回 `latest.json`。**已修(v3.25.32)**:`publish-update.sh` 现从 `latest-windows.json` 合并 windows 条目,且**仅当 win version == 本次 mac version(同批)才合并**,否则拒绝并警告(防"声明新版、实际旧包"导致 updater 反复提示同一旧包的死循环)。
|
||||
3. **v3.25.30 旧 win 包 updater 卡「正在检查…」**:那是旧包的 updater 行为/网络,不是发布错。诊断法:浏览器打开 `https://download.maqiart.eu.org/updates/latest.json`,能看到 `windows-x86_64` 即发布侧没问题;旧包用户**直接用网页下载 setup.exe 手动升级**最稳,装上 v3.25.31 后以后就能应用内更新。
|
||||
2. **更新源平台解耦(已修复,旧装机例外)**:早期 win 客户端编译时写死读 `latest.json`,而 mac 发布脚本曾只写 darwin 条目,导致 win 更新无结果。自 `856e34a`(2025-11-18)起,`src-tauri/tauri.windows.conf.json` 已把 updater endpoints 覆盖成 `latest-windows.json`;**新构建的 win 应用直接读 `latest-windows.json`**。mac 仍会把 windows 条目合并进 `latest.json`,只为兼容**旧装机**(它们编译时写死旧源)。升级到新包后,旧装机也会改读 `latest-windows.json`。
|
||||
3. **v3.25.30 旧 win 包 updater 卡「正在检查…」**:那是旧包的 updater 行为/网络,不是发布错。诊断法:新包看 `https://download.maqiart.eu.org/updates/latest-windows.json`,旧包看 `latest.json`;能看到 `windows-x86_64` 即发布侧没问题。旧包用户**直接用网页下载 setup.exe 手动升级**最稳,装上包含 `856e34a` 的版本后就会改读 `latest-windows.json`。
|
||||
4. **Windows 画布网页节点无圆角**:`cwv_round` 非 macOS 分支是空 stub,网页节点直角贴卡片。cosmetic,已知缺失,另排 backlog,不影响交付。
|
||||
|
||||
---
|
||||
@@ -84,14 +84,15 @@ mac 改源码 → mac commit → mac `RELEASE=1 git push gitea main`
|
||||
**结论**:win 客户端**支持在程序里「检查更新」自动升级**,机制和 mac 一样,但**依赖 mac 端配合签名 + 合并更新清单**,win 端自己做不到完整闭环。
|
||||
|
||||
**更新怎么触发**
|
||||
- win 客户端 `tauri.conf.json` 的更新源写死指向 `https://download.maqiart.eu.org/updates/latest.json`(和 mac 共用一个源,**不是** `latest-windows.json`)。
|
||||
- 点「检查更新」→ 读 `latest.json` → 找 **`windows-x86_64`** 条目 → 下载它指向的 `setup.exe` → 用项目公钥校验签名 → 通过则运行安装、重启。
|
||||
- 能否更新取决于两点:① `latest.json` 里有没有 `windows-x86_64` 条目;② 那个包是不是 mac 正式私钥签的。
|
||||
- 当前 win 构建(`src-tauri/tauri.windows.conf.json`,自 `856e34a`)的更新源是 `https://download.maqiart.eu.org/updates/latest-windows.json`;mac 的 `tauri.conf.json` 才是 `latest.json`。**不要再按旧文档说“win 只读 latest.json”**。
|
||||
- 点「检查更新」→ 读 `latest-windows.json` → 找 **`windows-x86_64`** 条目 → 下载它指向的 `setup.exe` → 用项目公钥校验签名 → 通过则运行安装、重启。
|
||||
- 能否更新取决于两点:① `latest-windows.json` 里有没有 `windows-x86_64` 条目;② 那个包是不是 mac 正式私钥签的。
|
||||
- **旧装机**仍可能读 `latest.json`(编译时写死);所以 mac 仍把 win 条目合并进 `latest.json` 作为兼容。新装机不需要这条也能更新。
|
||||
|
||||
**每次 win 发版的完整链路**
|
||||
1. win 端:拉最新 main → `npm ci && npm run app:build` → 得 `image-workbench_<版本>_x64-setup.exe` → 自测矩阵 → 放 NAS `_inbox/`(**只放 setup.exe,不放 .sig**)。
|
||||
1. win 端:拉最新 main → `npm ci` → 按 `WIN_BUILD_SPEC.md §3` 用临时 nosign config 构建(直接用 `npm run app:build` 会因没有更新私钥在签名阶段失败)→ 得 `image-workbench_<版本>_x64-setup.exe` → 自测矩阵 → 放 NAS `_inbox/`(**只放 setup.exe,不放 .sig**)。
|
||||
2. mac 端:`publish-windows-update.sh <setup.exe>`(正式私钥签名 + 上传 `updates/windows-x86_64/` + 写 `latest-windows.json`)。
|
||||
3. mac 端:重跑 `publish-update.sh`,把 win 条目合并进 `latest.json`(合并条件:win 版本 == mac 本次版本)。
|
||||
3. mac 端:重跑 `publish-update.sh`,把 win 条目合并进 `latest.json`(兼容旧装机;合并条件:win 版本 == mac 本次版本)。新装机读 `latest-windows.json`,不依赖这一步。
|
||||
4. 完成后 win 用户即可在程序里检查更新到新版。
|
||||
|
||||
**硬性前提 / 规则**
|
||||
@@ -107,13 +108,15 @@ mac 改源码 → mac commit → mac `RELEASE=1 git push gitea main`
|
||||
## 7. 验证发布是否到位(win 用户/你都能查)
|
||||
|
||||
```
|
||||
浏览器打开 https://download.maqiart.eu.org/updates/latest-windows.json
|
||||
→ version 应是目标版本,platforms 应含 windows-x86_64
|
||||
浏览器打开 https://download.maqiart.eu.org/updates/latest.json
|
||||
→ version 应是目标版本,platforms 应含 darwin-aarch64 / darwin-x86_64 / windows-x86_64
|
||||
→ mac 条目为目标版本;为兼容旧装机,也应含 windows-x86_64
|
||||
浏览器打开 https://download.maqiart.eu.org/
|
||||
→ 三平台都应是「下载」按钮,不是「暂未提供」
|
||||
```
|
||||
|
||||
`latest.json` 是 `cf-cache-status: DYNAMIC`(CF 不缓存),改完即时生效,不用等。
|
||||
`latest.json` / `latest-windows.json` 都是 `cf-cache-status: DYNAMIC`(CF 不缓存),改完即时生效,不用等。
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
| 组件 | 位置 | 说明 |
|
||||
|---|---|---|
|
||||
| 更新插件 | `src-tauri/Cargo.toml` → `tauri-plugin-updater` | Rust 侧用 `UpdaterExt` |
|
||||
| 更新源 | `src-tauri/tauri.conf.json` → `plugins.updater.endpoints` | `https://download.maqiart.eu.org/updates/latest.json` |
|
||||
| 更新源(macOS) | `src-tauri/tauri.conf.json` → `plugins.updater.endpoints` | `https://download.maqiart.eu.org/updates/latest.json` |
|
||||
| 更新源(Windows) | `src-tauri/tauri.windows.conf.json` → `plugins.updater.endpoints` | `https://download.maqiart.eu.org/updates/latest-windows.json`(自 `856e34a`;旧装机仍可能读 latest.json) |
|
||||
| 签名公钥 | 同上 `plugins.updater.pubkey` | 私钥在 `~/.config/iwb-updater.key`(**务必备份**) |
|
||||
| 产物开关 | `bundle.createUpdaterArtifacts: true` | 构建 app 时额外产出 `.app.tar.gz` + `.sig` |
|
||||
| Rust 命令 | `check_update` / `install_update` | 前端通过 `__TAURI__.core.invoke` 调用 |
|
||||
|
||||
+20
-10
@@ -12,7 +12,7 @@ win 构建 setup.exe → win 自测通过 → 把 setup.exe 放到 NAS `_inbox/`
|
||||
## 0.1 版本与 CRLF(2026-11-24 教训,v3.26.54/55)
|
||||
|
||||
- **版本号只认 `package.json`**:`node -e "console.log(require('./package.json').version)"`;文档里写死的版本一律视为历史示例。
|
||||
- 拉取 `gitea/main` 后先跑 `npm run tokens:check`,再 `npm run app:build`。
|
||||
- 拉取 `origin/main` 后先跑 `npm run tokens:check`,再按 §3 的临时 nosign config 构建。
|
||||
- 若报 `src/design-tokens.css 与 derive() 不一致`:**先怀疑 Windows 检出把 CSS 转成了 CRLF**,不要直接 `tokens:write`。校验层(`gen-tokens.js` + `build.js`)自 v3.26.55 起已归一 `\r\n`;仍失败时把**第一处差异行**原样发回 mac 端。
|
||||
- `.gitattributes` 的 `eol=lf` 只影响**新检出**,不会自动 renormalize 已存在工作区——所以不能只靠它。
|
||||
- 不要改 `scripts/build.js` / `gen-tokens.js` 来绕过;构建脚本属于 mac 源码,改动先同步 mac 端。
|
||||
@@ -44,18 +44,20 @@ rustc -V # 期望 >= 1.90
|
||||
## 2. 取代码(必须是最新 main)
|
||||
|
||||
```powershell
|
||||
git fetch gitea
|
||||
git fetch origin
|
||||
git checkout main
|
||||
git reset --hard gitea\main
|
||||
git reset --hard origin/main
|
||||
```
|
||||
|
||||
> win 机器的 remote 只有 `origin`;`gitea` 是 mac 端 remote,不要混用。
|
||||
|
||||
**校验基线**(构建前必查,缺一不可):
|
||||
|
||||
```powershell
|
||||
# 2.1 三处版本号必须完全一致,且 = 目标版本(如 3.25.31)
|
||||
node -e "console.log(require('./package.json').version)"
|
||||
node -e "console.log(require('./src-tauri/tauri.conf.json').version)"
|
||||
node -e "console.log(require('./src-tauri/Cargo.toml').version)"
|
||||
(Select-String -Path .\src-tauri\Cargo.toml -Pattern '^version\s*=\s*"([^"]+)"' | Select-Object -First 1).Matches[0].Groups[1].Value
|
||||
|
||||
# 2.2 确认含 Windows 死锁修复(v3.25.31 的关键改动)
|
||||
# 这 6 个命令必须是 async fn,不是同步 fn
|
||||
@@ -75,10 +77,18 @@ findstr /C:"async fn canvas_webview_close_all" src-tauri\src\lib.rs
|
||||
|
||||
```powershell
|
||||
npm ci
|
||||
npm run app:build
|
||||
|
||||
# 关键:win 没有正式更新私钥,而 tauri.conf.json 是 createUpdaterArtifacts:true。
|
||||
# 直接 npm run app:build 会在签名阶段失败(Rust/NSIS 都白编)。
|
||||
# 把 createUpdaterArtifacts 关掉,写到临时目录再构建;不要改仓库文件、不要产 .sig。
|
||||
$cfg = Join-Path $env:TEMP 'iwb-tauri-win-nosign.json'
|
||||
'{"bundle":{"createUpdaterArtifacts":false}}' | Set-Content -Encoding ascii $cfg
|
||||
.\node_modules\.bin\tauri.cmd build --config $cfg
|
||||
```
|
||||
|
||||
- **不要用** `npm run app:build` 替代上面这条:npm 不会把 `--config` 透传给 tauri,且 win 端不该自己签名。
|
||||
- 首次会编译约 250 个 crate,2–5 分钟;之后增量很快。
|
||||
- 产物目录不变;因为关闭 updater artifacts,不会生成 `.sig`,这是预期的。mac 端会用自己的私钥重签。
|
||||
- 产物:
|
||||
- `src-tauri\target\release\bundle\nsis\image-workbench_<version>_x64-setup.exe` ← **交付这个**
|
||||
- `src-tauri\target\release\bundle\msi\*.msi`(可选,备用)
|
||||
@@ -120,7 +130,7 @@ certutil -hashfile src-tauri\target\release\bundle\nsis\image-workbench_3.25.31_
|
||||
| 4 | 节点 ✕ / 切工作区 / 退出应用 | cwv-* 子 webview 正常回收,不留残余进程 |
|
||||
| 5 | 独立浏览器窗口(插件「↗ 独立窗口」)| 能打开(这条本来就跨平台可用)|
|
||||
|
||||
第 2 项不过 → 别交付,把 `_%APPDATA%\com.malongan.imageworkbench\_cwv.log` 发回 mac 端排查。
|
||||
第 2 项不过 → 别交付,把 `%APPDATA%\com.malongan.imageworkbench\_cwv.log` 发回 mac 端排查。
|
||||
|
||||
已知缺失(不影响交付,但告知用户):Windows 画布网页节点**没有圆角**(直角贴卡片),属 cosmetic,另排 backlog。
|
||||
|
||||
@@ -148,7 +158,7 @@ mac 端收到通知后执行:
|
||||
2. `./scripts/publish-windows-update.sh <setup.exe>` —— 本机正式私钥签名 + 上传 `updates/windows-x86_64/` + 写 `latest-windows.json`
|
||||
3. `node scripts/update-releases.js --platform windows-x86_64 …` 登记网页下载
|
||||
4. `gen-release-page.js` + `gen-site.js` 重生成页面 + scp 元数据
|
||||
5. 合并 windows 条目进 `latest.json`(应用内更新源)
|
||||
5. 合并 windows 条目进 `latest.json`(兼容旧装机;新 win 构建读 `latest-windows.json`,见 `tauri.windows.conf.json`)
|
||||
6. commit + `RELEASE=1 git push gitea main`
|
||||
|
||||
---
|
||||
@@ -160,16 +170,16 @@ mac 端收到通知后执行:
|
||||
- ❌ 在 win 上跑 `cargo fmt` / IDE 保存即格式化(会引入整文件 diff,污染 mac 端同步)
|
||||
- ❌ 把 `target\`、`node_modules\`、`.cargo`、`.msi` 提交进 git
|
||||
- ❌ 用 `git add -A`(只精确提交需要入库的文件)
|
||||
- ❌ 直接 `git push gitea main`(push 需 mac 端 `RELEASE=1` 口令,win 端不 push)
|
||||
- ❌ 直接 `git push`(push 需 mac 端 `RELEASE=1` 口令,win 端不 push;win 的 remote 是 `origin`,不是 `gitea`)
|
||||
|
||||
---
|
||||
|
||||
## 9. 快速核对清单(交付前打勾)
|
||||
|
||||
- [ ] `git reset --hard gitea\main` 到最新
|
||||
- [ ] `git reset --hard origin/main` 到最新
|
||||
- [ ] package.json / tauri.conf / Cargo.toml 三处版本一致 = 目标版本
|
||||
- [ ] lib.rs 里 6 个 `async fn canvas_webview_*` 都在
|
||||
- [ ] `npm ci && npm run app:build` 成功
|
||||
- [ ] §3 的 `tauri build --config <临时 nosign.json>` 成功(不是 `npm run app:build`)
|
||||
- [ ] 产物名 = `image-workbench_<version>_x64-setup.exe`
|
||||
- [ ] 记下 size + SHA256
|
||||
- [ ] 自测矩阵 5 项全过(尤其第 2 项画布网页不卡死)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# 现状架构与性能事实基线(桌面版)
|
||||
|
||||
> **本文档是什么**:现状**事实快照**,不是规范。用途:任何性能 / 内存 / 存储相关改动,先对齐这里的现实,避免把已经调好的东西改坏。
|
||||
> 日期 **2026-10-20**(**2026-11-16 复算 · v3.24.85**)| 基线(**最近一次 bump 版本的提交**,不是主干 HEAD)`main = d604bb3`(线上 `v3.26.102+d604bb3` —— 2026-11-24 **图库:出图即入图库 + 插入落本地副本(能标注)**:每张生成完成即归档并通知插件(此前只在整轮结束写一次 ⇒ 生成中图库一直空)、插入取源改本地字节优先并引用化(抓不到才留原链接 + 提示)、`getNodeImage` 补 `data.localRef` 候选(远程缓存命中却仍判「不支持标注」的直接成因)、批量插入改 4 列栅格(旧实现同批全叠一处),逻辑落 `src/gallery-sync.js`,app.js 只装配;上一条 `v3.26.60+cf0e9a0` —— **浮层字号上调一档**:「模型设置」「图像设置」选择项 11→13px、高 22→28、左右内距 6→10、间距 4→6、标题 12→14、面板 328→360,改动全落在 `.iwb-pop` 的 6 个 token(两面板共用一套);上一条 `v3.26.59+e966b34` —— 备份新增 `plugin-files/` 通道,提示词封面换机不再丢;再上一条 2026-11-23 **节点正文文本区修复**:提示词/文本节点正文透明继承卡片底色(白卡片消失)、编辑态三层框(控件 border / 聚焦光晕 / D8 焦点环)全去掉,规范补表面角色三分法与 `node-scope-test` 第 5 条守卫,8 张基线重录;上一条 `v3.26.51+21554b0` —— **M6 延展验证**:插件面板两段六次叠加样式合并重写、133 行新增零裸值;补 `--iwb-font-base`(14px) 第 8 档与亮色状态色调深(对浅页面 2.13 → ≥4.6),对比度守卫 114→138 对;新增 ⑦⑧ 组件夹具基线共 16 张;`batch-export` 1.2.2 状态色走宿主 token、去掉纯蓝主按钮;棘轮基线首次下调。M1–M6 全部完成;上一条 `v3.26.50+cab473c` —— **M5 闸门**:新增 `scripts/token-lint.js`(只查 diff 新增行,CSS 与 JS 内联样式两套判据、四类白名单)+ `tests/design-token-ratchet-test.js`(13 项计数只降不升)+ `tests/theme-contrast-test.js`(亮/暗 × 文字 × 表面 114 对),三条各做一次打红验证后接进 `verify:ci`;顺手把首启动「选择资料目录」弹窗 token 化(全仓最后一个完全未 token 化的界面);上一条 `v3.26.49+1743453` —— **M4-B6 收尾**:`style.css` 剩余 16 处半像素字号全清零(守卫收紧为全文件断言)、`--iwb-control-h` 裁定不扩到全局控件(并排表单 vs 成组紧凑控件);插件主题契约重写,`ALLOW_FILES` 文件级豁免 **6 → 0** —— 改为「私有皮肤 manifest 自声明 `skin` + chroma 强调色判据 + 内容色行内标记」,声明私有皮肤的插件不得引用宿主颜色 token;同步 4 个插件版本,插件侧中性色写死归零;视觉基线 8 张因字号栅格化变化更新,A/B 回退确认非环境噪声;上一条 `v3.26.48+cb9cb9c` —— **M4-B5 节点**:节点卡内部表面统一 `--iwb-field` —— 端口底色从 `#161616`(暗色对卡片差 39 级,一颗黑洞)改 `#494949`(差 12 级),同病灶另 6 处(ref-img/ref-single/upload-link/refmini-empty/task-result-img/node-head:hover)一并改;浮条与任务卡 hover 改 `color-mix(text 10%)`(原来 panel 与 layer2 深色同色,hover 无反馈);字号 12/15/11/13 全归档位、圆角 8/6/5/14 归并、间距 52 处等值 + 13 处 1px 级微调;删 6 个死类名;新增 `tests/node-scope-test.js` 钉「节点内禁用面板表面色」;上一条 `v3.26.47+f5c8174` —— **M4-B4 设置/外观**:新增 `--iwb-control-h`(30px) 修「同行输入框 33px / 按钮 24px」的 9px 落差;设置页正文 14→13、标题 16→15,范围内半像素字号清零;删 21 条死规则(setcell/setgrid/set-row/appear-val 等);新增 `tests/settings-scope-test.js` 钉「控件等高 / 死类名不复现 / 引用的 token 必须存在」;上一条 `v3.26.46+9f29996` —— 2026-11-23 **M4-B3 首页/库**:删 30 条零生产者规则(25 个类名在产物里 0 次)+ 4 条被 specificity 覆盖的死声明,`style.css` 2391→2339 行;首页/库 106 条规则换 token,间距写死 91→5(只剩版心与导航让位的布局值)、字号写死清零,新增 `--iwb-font-display:24px` 第 7 档;验收改为「计算样式逐元素 diff + 12 张基线只首页 2 张变化」;上一条 `v3.26.45+968ff46` —— **M4-B2 浮层层级表 + 阴影四档**:14 档 `--iwb-z-*`(裸 z-index 取值种类 42→31)、`--iwb-elevation-1..4`(浮层 8 种阴影写法→4 档)、`.iwb-pop` 圆角 18→`radius-popover(14)`;修「弹窗里点保存看不到提示」—— 根因不是层级数字而是 `.iwb-overlay` 本身就是堆叠上下文,toast 改为 portal 到 `body`;新增 `tests/overlay-layer-test.js` 钉 9 条顺序约束;上一条 `v3.26.44+846a59b` —— **设计 token 体系重建**:D1–D9 色彩模型改为真正的深色(#12Line truncated
|
||||
> 日期 **2026-10-20**(**2026-11-16 复算 · v3.24.85**)| 基线(**最近一次 bump 版本的提交**,不是主干 HEAD)`main = 9943e99`(线上 `v3.26.104+9943e99` —— 2026-11-24 **图库:出图即入图库 + 插入落本地副本(能标注)**:每张生成完成即归档并通知插件(此前只在整轮结束写一次 ⇒ 生成中图库一直空)、插入取源改本地字节优先并引用化(抓不到才留原链接 + 提示)、`getNodeImage` 补 `data.localRef` 候选(远程缓存命中却仍判「不支持标注」的直接成因)、批量插入改 4 列栅格(旧实现同批全叠一处),逻辑落 `src/gallery-sync.js`,app.js 只装配;上一条 `v3.26.60+cf0e9a0` —— **浮层字号上调一档**:「模型设置」「图像设置」选择项 11→13px、高 22→28、左右内距 6→10、间距 4→6、标题 12→14、面板 328→360,改动全落在 `.iwb-pop` 的 6 个 token(两面板共用一套);上一条 `v3.26.59+e966b34` —— 备份新增 `plugin-files/` 通道,提示词封面换机不再丢;再上一条 2026-11-23 **节点正文文本区修复**:提示词/文本节点正文透明继承卡片底色(白卡片消失)、编辑态三层框(控件 border / 聚焦光晕 / D8 焦点环)全去掉,规范补表面角色三分法与 `node-scope-test` 第 5 条守卫,8 张基线重录;上一条 `v3.26.51+21554b0` —— **M6 延展验证**:插件面板两段六次叠加样式合并重写、133 行新增零裸值;补 `--iwb-font-base`(14px) 第 8 档与亮色状态色调深(对浅页面 2.13 → ≥4.6),对比度守卫 114→138 对;新增 ⑦⑧ 组件夹具基线共 16 张;`batch-export` 1.2.2 状态色走宿主 token、去掉纯蓝主按钮;棘轮基线首次下调。M1–M6 全部完成;上一条 `v3.26.50+cab473c` —— **M5 闸门**:新增 `scripts/token-lint.js`(只查 diff 新增行,CSS 与 JS 内联样式两套判据、四类白名单)+ `tests/design-token-ratchet-test.js`(13 项计数只降不升)+ `tests/theme-contrast-test.js`(亮/暗 × 文字 × 表面 114 对),三条各做一次打红验证后接进 `verify:ci`;顺手把首启动「选择资料目录」弹窗 token 化(全仓最后一个完全未 token 化的界面);上一条 `v3.26.49+1743453` —— **M4-B6 收尾**:`style.css` 剩余 16 处半像素字号全清零(守卫收紧为全文件断言)、`--iwb-control-h` 裁定不扩到全局控件(并排表单 vs 成组紧凑控件);插件主题契约重写,`ALLOW_FILES` 文件级豁免 **6 → 0** —— 改为「私有皮肤 manifest 自声明 `skin` + chroma 强调色判据 + 内容色行内标记」,声明私有皮肤的插件不得引用宿主颜色 token;同步 4 个插件版本,插件侧中性色写死归零;视觉基线 8 张因字号栅格化变化更新,A/B 回退确认非环境噪声;上一条 `v3.26.48+cb9cb9c` —— **M4-B5 节点**:节点卡内部表面统一 `--iwb-field` —— 端口底色从 `#161616`(暗色对卡片差 39 级,一颗黑洞)改 `#494949`(差 12 级),同病灶另 6 处(ref-img/ref-single/upload-link/refmini-empty/task-result-img/node-head:hover)一并改;浮条与任务卡 hover 改 `color-mix(text 10%)`(原来 panel 与 layer2 深色同色,hover 无反馈);字号 12/15/11/13 全归档位、圆角 8/6/5/14 归并、间距 52 处等值 + 13 处 1px 级微调;删 6 个死类名;新增 `tests/node-scope-test.js` 钉「节点内禁用面板表面色」;上一条 `v3.26.47+f5c8174` —— **M4-B4 设置/外观**:新增 `--iwb-control-h`(30px) 修「同行输入框 33px / 按钮 24px」的 9px 落差;设置页正文 14→13、标题 16→15,范围内半像素字号清零;删 21 条死规则(setcell/setgrid/set-row/appear-val 等);新增 `tests/settings-scope-test.js` 钉「控件等高 / 死类名不复现 / 引用的 token 必须存在」;上一条 `v3.26.46+9f29996` —— 2026-11-23 **M4-B3 首页/库**:删 30 条零生产者规则(25 个类名在产物里 0 次)+ 4 条被 specificity 覆盖的死声明,`style.css` 2391→2339 行;首页/库 106 条规则换 token,间距写死 91→5(只剩版心与导航让位的布局值)、字号写死清零,新增 `--iwb-font-display:24px` 第 7 档;验收改为「计算样式逐元素 diff + 12 张基线只首页 2 张变化」;上一条 `v3.26.45+968ff46` —— **M4-B2 浮层层级表 + 阴影四档**:14 档 `--iwb-z-*`(裸 z-index 取值种类 42→31)、`--iwb-elevation-1..4`(浮层 8 种阴影写法→4 档)、`.iwb-pop` 圆角 18→`radius-popover(14)`;修「弹窗里点保存看不到提示」—— 根因不是层级数字而是 `.iwb-overlay` 本身就是堆叠上下文,toast 改为 portal 到 `body`;新增 `tests/overlay-layer-test.js` 钉 9 条顺序约束;上一条 `v3.26.44+846a59b` —— **设计 token 体系重建**:D1–D9 色彩模型改为真正的深色(#12Line truncated
|
||||
<!-- 2026-10-28 P1 拆分批 1:新增 src/generation-task-graph.js(5 个任务图纯函数自 app.js 迁出)
|
||||
⇒ 模块数 60→61、耦合面 51→52、sourceModules 60→61。耦合面只**新增** IWBWTaskGraph,无删除。
|
||||
2026-10-28 P1 拆分批 2:新增 src/storage-config-shape.js(9 个配置形状纯函数自 app.js 迁出)
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
6. **外部路径的 fs 授权不是持久的。**
|
||||
`{__file}` 只存路径;Tauri fs scope 重启即失效。`grant_paths` 必须落盘,启动时恢复;
|
||||
旧画布还要扫描已知 `{__file}` 再 grant 一次。否则“缩略图有缓存、组合节点全感叹号”,且只有新导入的图正常。
|
||||
重选文件夹也不要直接 append:按归一化路径就地更新,清 missing + 缩略图缓存 + forceThumbs,否则坏格留在前面、重复项排到后面/下一页。
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -278,9 +278,10 @@ npm run verify
|
||||
dist/app.js = src/*.js(按 sourceModules 定序,逐文件 minify;自动发现的 src/plugin-*.js 追加于末尾)
|
||||
+ app.js(先注入 APP_VERSION,再 minify),纯文本拼接
|
||||
dist/style.css = style.css(minify)
|
||||
dist/ += favicon.svg / _headers / THIRD_PARTY_NOTICES.md
|
||||
/ vendor/react*.js ×2 / sw.js(注入 __IWB_VERSION__)
|
||||
dist/ += _headers / THIRD_PARTY_NOTICES.md
|
||||
/ vendor/react*.js ×2 / sw.js(注入 __IWB_VERSION__;保留更新检测 + 图片缓存,不是 PWA 安装面)
|
||||
/ index.html(内联生成)/ version.json
|
||||
(2026-11-26 起根目录 favicon/icon-*/apple-touch-icon/manifest 已删除)
|
||||
```
|
||||
|
||||
- **规则:`sourceModules` 的顺序即加载顺序,绝不排序、绝不改动**(各模块通过 `window.IWB*` 在运行时互相依赖)。
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
||||
<rect width="64" height="64" rx="14" fill="#2563eb"/>
|
||||
<path d="M16 18h32v8H16zM16 29h22v8H16zM16 40h32v8H16z" fill="#fff"/>
|
||||
<circle cx="47" cy="33" r="7" fill="#fbbf24"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 245 B |
Binary file not shown.
|
Before Width: | Height: | Size: 6.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB |
@@ -1,18 +0,0 @@
|
||||
{
|
||||
"name": "无限画布 Image Workbench",
|
||||
"short_name": "无限画布",
|
||||
"description": "本地优先的 AI 生图画布:节点式编排、提示词库、图库与画板管理",
|
||||
"start_url": "/",
|
||||
"scope": "/",
|
||||
"display": "standalone",
|
||||
"orientation": "any",
|
||||
"background_color": "#0f1115",
|
||||
"theme_color": "#2563eb",
|
||||
"lang": "zh-CN",
|
||||
"icons": [
|
||||
{ "src": "icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any" },
|
||||
{ "src": "icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any" },
|
||||
{ "src": "icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" },
|
||||
{ "src": "favicon.svg", "sizes": "any", "type": "image/svg+xml", "purpose": "any" }
|
||||
]
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "image-workbench-web",
|
||||
"private": true,
|
||||
"version": "3.26.102",
|
||||
"version": "3.26.104",
|
||||
"description": "Browser-based node canvas image workbench",
|
||||
"scripts": {
|
||||
"build": "node scripts/build.js && node scripts/copy-plugins.js",
|
||||
|
||||
+58
-12
@@ -66,6 +66,9 @@
|
||||
const isImagePath = (p) => IMG_EXT.indexOf(extOf(p)) >= 0
|
||||
const fileRefOf = (src) => (src && typeof src === 'object' && typeof src.__file === 'string') ? src.__file : ''
|
||||
const nameOf = (p) => String(p || '').replace(/^.*[\\/]/, '')
|
||||
// Windows 路径大小写不敏感;重选同一文件夹时 dialog 可能回不同大小写,必须按平台归一化后再去重
|
||||
const WIN = typeof navigator !== 'undefined' && /Windows/i.test(String(navigator.userAgent || ''))
|
||||
const normPath = (p) => { const s = String(p || '').replace(/\\/g, '/'); return WIN ? s.toLowerCase() : s }
|
||||
const str = (v) => (v == null ? '' : String(v))
|
||||
|
||||
// ── 缩略图(插件私有缓存,几十 KB/张,不碰画布存储)────────────
|
||||
@@ -143,6 +146,7 @@
|
||||
const st = {
|
||||
nodeId: node.id,
|
||||
thumbs: new Map(), // key → dataURL(内存缓存)
|
||||
forceThumbs: new Set(), // 需要绕过旧缩略图缓存、重新读原图的 key(重选文件夹/缩略图损坏)
|
||||
pending: new Map(), // key → Promise(并发去重:格子挂载和预生成会同时要同一张)
|
||||
missing: new Set(), // 失联文件的 key
|
||||
busy: '',
|
||||
@@ -354,11 +358,25 @@
|
||||
title: (it && it.name ? it.name : ('图 ' + (index + 1))) + (missing ? '(文件已不在原位置:点一下重新定位)' : ''),
|
||||
})
|
||||
const img = el('img', { alt: '', draggable: 'false' })
|
||||
// 缩略图缓存可能来自旧路径/旧版本,dataURL 本身坏了也会命中;onerror 时绕过缓存重读原图一次。
|
||||
let thumbRetried = false
|
||||
const applyThumb = (url) => {
|
||||
if (!url || img.isConnected === false) return
|
||||
img.onerror = () => {
|
||||
if (thumbRetried) return
|
||||
thumbRetried = true
|
||||
st.thumbs.delete(key)
|
||||
if (st.forceThumbs) st.forceThumbs.add(key)
|
||||
try { if (ctx.files) ctx.files.remove(thumbNameOf(key)) } catch (e) { /* ignore */ }
|
||||
loadThumb(ctx, st, it, key, true).then((next) => { if (next) applyThumb(next) })
|
||||
}
|
||||
img.src = url
|
||||
}
|
||||
const cached = st.thumbs.get(key)
|
||||
if (cached) img.src = cached
|
||||
if (cached) applyThumb(cached)
|
||||
// 不设 img.src = '':空字符串会向页面 URL 发一次请求(控制台 ERR_UNKNOWN_URL_SCHEME)。
|
||||
// 不设 src 属性时 <img> 什么都不做,缩略图到了再赋上即可。
|
||||
else loadThumb(ctx, st, it, key).then((url) => { if (url && img.isConnected !== false) img.src = url })
|
||||
else loadThumb(ctx, st, it, key).then(applyThumb)
|
||||
btn.appendChild(img)
|
||||
btn.appendChild(el('span', { className: 'iwb-album-idx' }, String(index + 1)))
|
||||
// 批次角标(右上角那个「1」)已删除:顶栏「N 张 → M 个任务」已经说清楚,角标是重复信息,
|
||||
@@ -442,19 +460,20 @@
|
||||
// ── 缩略图取用:内存 → 插件文件 → 现做 ───────────────────
|
||||
// 并发去重(1.1.0):格子一挂载就各自要缩略图,而 addPaths 又顺序预热一遍 ⇒ 同一张图会被读两次盘。
|
||||
// 用 pending 表把同 key 的请求合成一个 Promise(否则导入 30 张会解 60 次原图,内存直接翻倍)。
|
||||
async function loadThumb (ctx, st, it, key) {
|
||||
if (st.thumbs.has(key)) return st.thumbs.get(key)
|
||||
async function loadThumb (ctx, st, it, key, force) {
|
||||
const forced = !!force || !!(st.forceThumbs && st.forceThumbs.has(key))
|
||||
if (!forced && st.thumbs.has(key)) return st.thumbs.get(key)
|
||||
const flight = st.pending && st.pending.get(key)
|
||||
if (flight) return flight
|
||||
const p = loadThumbInner(ctx, st, it, key).finally(() => { if (st.pending) st.pending.delete(key) })
|
||||
if (flight && !forced) return flight
|
||||
const p = loadThumbInner(ctx, st, it, key, forced).finally(() => { if (st.pending) st.pending.delete(key) })
|
||||
if (st.pending) st.pending.set(key, p)
|
||||
return p
|
||||
}
|
||||
async function loadThumbInner (ctx, st, it, key) {
|
||||
if (st.thumbs.has(key)) return st.thumbs.get(key)
|
||||
async function loadThumbInner (ctx, st, it, key, force) {
|
||||
if (!force && st.thumbs.has(key)) return st.thumbs.get(key)
|
||||
const name = thumbNameOf(key)
|
||||
try {
|
||||
if (ctx.files) {
|
||||
if (!force && ctx.files) {
|
||||
const got = await ctx.files.get(name)
|
||||
if (got && got.ok && got.url) { st.thumbs.set(key, got.url); return got.url }
|
||||
}
|
||||
@@ -470,6 +489,7 @@
|
||||
const thumb = await makeThumb(dataUrl)
|
||||
if (!thumb) return ''
|
||||
st.thumbs.set(key, thumb)
|
||||
if (st.forceThumbs) st.forceThumbs.delete(key)
|
||||
// 内存里已经有一张就够本会话用了;写盘失败(配额满)不影响显示
|
||||
try { if (ctx.files) await ctx.files.put(name, thumb) } catch (e) { /* ignore */ }
|
||||
return thumb
|
||||
@@ -645,7 +665,7 @@
|
||||
function clearAll (ctx, st) {
|
||||
const items = itemsOf(st.node)
|
||||
if (!items.length) return
|
||||
st.thumbs.clear(); st.pending.clear(); st.missing.clear()
|
||||
st.thumbs.clear(); st.pending.clear(); st.missing.clear(); if (st.forceThumbs) st.forceThumbs.clear()
|
||||
st.checkedMissing = false // 清空后再导入要重新做一次失联检测
|
||||
closeViewer(st) // 正在看大图时清空 ⇒ 先把浮层收掉(别留个没有数据的空查看器)
|
||||
update(st.props, st.node, { items: [], page: 0, pageRange: null }, true)
|
||||
@@ -696,7 +716,33 @@
|
||||
st.busy = '导入 ' + (i + 1) + '/' + list.length; st.sig = ''; sync(ctx, st, st.node, st.props)
|
||||
const ref = await ctx.images.reference(list[i])
|
||||
if (!ref || !ref.ok) continue
|
||||
items.push({ src: { __file: ref.item.path }, name: ref.item.name, size: ref.item.size, mtime: ref.item.mtime, on: true })
|
||||
const nextSrc = { __file: ref.item.path }
|
||||
// 重选同一文件夹:按归一化路径就地更新,不追加重复项(旧实现会让坏格一直留在前面,
|
||||
// 新加的重复项排到后面/下一页,看起来就是「重新选择也不出缩略图」)。
|
||||
let at = -1
|
||||
for (let k = 0; k < items.length; k++) {
|
||||
const p0 = fileRefOf(items[k] && items[k].src)
|
||||
if (p0 && normPath(p0) === normPath(ref.item.path)) { at = k; break }
|
||||
}
|
||||
if (at >= 0) {
|
||||
const old = items[at]
|
||||
const oldKey = thumbKeyOf(old)
|
||||
items[at] = Object.assign({}, old, { src: nextSrc, name: ref.item.name, size: ref.item.size, mtime: ref.item.mtime, on: true })
|
||||
st.missing.delete(fileRefOf(old && old.src))
|
||||
st.missing.delete(ref.item.path)
|
||||
st.thumbs.delete(oldKey)
|
||||
if (st.forceThumbs) st.forceThumbs.add(oldKey)
|
||||
try { if (ctx.files) await ctx.files.remove(thumbNameOf(oldKey)) } catch (e) { /* ignore */ }
|
||||
// 路径大小写/分隔符不同 ⇒ 新 key 也要清掉旧缓存并强制重读
|
||||
const newKey = thumbKeyOf(items[at])
|
||||
if (newKey !== oldKey) {
|
||||
st.thumbs.delete(newKey)
|
||||
if (st.forceThumbs) st.forceThumbs.add(newKey)
|
||||
try { if (ctx.files) await ctx.files.remove(thumbNameOf(newKey)) } catch (e) { /* ignore */ }
|
||||
}
|
||||
} else {
|
||||
items.push({ src: nextSrc, name: ref.item.name, size: ref.item.size, mtime: ref.item.mtime, on: true })
|
||||
}
|
||||
}
|
||||
st.busy = ''
|
||||
st.checkedMissing = false // 新图要重新做一次失联检测(否则清空后再导入,检测永远不再跑)
|
||||
@@ -812,7 +858,7 @@
|
||||
global.IWBPluginHost.register({
|
||||
id: 'album',
|
||||
name: '相册',
|
||||
version: '1.1.4',
|
||||
version: '1.1.5',
|
||||
apiVersion: 1,
|
||||
capabilities: ['nodeTypes', 'images', 'files'],
|
||||
settings: {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "album",
|
||||
"name": "相册",
|
||||
"version": "1.1.4",
|
||||
"version": "1.1.5",
|
||||
"apiVersion": 1,
|
||||
"main": "main.js",
|
||||
"style": "styles.css",
|
||||
@@ -14,7 +14,7 @@
|
||||
"出图"
|
||||
],
|
||||
"files": {
|
||||
"main.js": "7e092c7b38842661fde9bd301306609b38f3927c7025d97f4ab29bfc04683914",
|
||||
"main.js": "af2e2dc9331b62e7a49945b855bca95bf52e6dad8e4a52c74f50c11a031e5527",
|
||||
"styles.css": "f8af2310bc5fe099f726f05b5234f928fe31a651f2143c96c88e474b9797fdf7"
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -4,9 +4,9 @@
|
||||
"dir": "album",
|
||||
"main": "main.js",
|
||||
"style": "styles.css",
|
||||
"version": "1.1.4",
|
||||
"version": "1.1.5",
|
||||
"files": {
|
||||
"main.js": "7e092c7b38842661fde9bd301306609b38f3927c7025d97f4ab29bfc04683914",
|
||||
"main.js": "af2e2dc9331b62e7a49945b855bca95bf52e6dad8e4a52c74f50c11a031e5527",
|
||||
"styles.css": "f8af2310bc5fe099f726f05b5234f928fe31a651f2143c96c88e474b9797fdf7"
|
||||
}
|
||||
},
|
||||
|
||||
+2
-10
@@ -212,11 +212,8 @@ const minifiedCss = transformSync(cssRaw, {
|
||||
}).code
|
||||
fs.writeFileSync(path.join(dist, 'style.css'), minifiedCss)
|
||||
|
||||
fs.copyFileSync(path.join(root, 'favicon.svg'), path.join(dist, 'favicon.svg'))
|
||||
// PWA(2026-11-07):可安装 —— manifest + 图标(iOS 额外要 apple-touch-icon 的 PNG)
|
||||
for (const f of ['manifest.webmanifest', 'icon-192.png', 'icon-512.png', 'apple-touch-icon.png']) {
|
||||
fs.copyFileSync(path.join(root, f), path.join(dist, f))
|
||||
}
|
||||
// 2026-11-26:PWA 安装面已移除(根目录 favicon/icon-*/apple-touch-icon/manifest 已删)。
|
||||
// sw.js 保留:它不只服务 PWA,还负责版本更新检测和 /__iwb_cache__ 图片缓存直出,删了会破图。
|
||||
// 第三方许可随部署产物一起分发(MIT 要求随软件保留版权与许可声明)
|
||||
fs.copyFileSync(path.join(root, 'THIRD_PARTY_NOTICES.md'), path.join(dist, 'THIRD_PARTY_NOTICES.md'))
|
||||
fs.copyFileSync(path.join(root, 'vendor/react.production.min.js'), path.join(dist, 'vendor/react.production.min.js'))
|
||||
@@ -234,12 +231,7 @@ const html = `<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>无限画布</title>
|
||||
<link rel="icon" type="image/svg+xml" href="favicon.svg">
|
||||
<link rel="apple-touch-icon" href="apple-touch-icon.png">
|
||||
<link rel="manifest" href="manifest.webmanifest">
|
||||
<meta name="theme-color" content="#2563eb">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-title" content="无限画布">
|
||||
<link rel="stylesheet" href="style.css?v=${version}">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -60,3 +60,12 @@ for (const key of ['version', 'packageVersion', 'commit']) {
|
||||
if (!meta[key] || String(meta[key]).length === 0) fail('dist/version.json.' + key + ' 为空')
|
||||
}
|
||||
pass('dist/version.json 的 version/packageVersion/commit 均非空')
|
||||
|
||||
// 6. PWA 安装面已移除(2026-11-26):根图标/manifest 不再进 dist,也不能再被 index.html 引用。
|
||||
// sw.js 必须保留:它负责更新检测和 /__iwb_cache__ 图片直出,不是纯 PWA 安装面。
|
||||
for (const f of ['favicon.svg', 'manifest.webmanifest', 'icon-192.png', 'icon-512.png', 'apple-touch-icon.png']) {
|
||||
if (fs.existsSync(path.join(dist, f))) fail('dist/' + f + ' 不应存在(PWA 安装面已移除)')
|
||||
if (html.includes(f)) fail('dist/index.html 仍引用已删除的 ' + f)
|
||||
}
|
||||
if (!fs.existsSync(path.join(dist, 'sw.js'))) fail('dist/sw.js 必须保留(更新检测 + 图片缓存)')
|
||||
pass('PWA 图标/manifest 未进 dist,index.html 无引用;sw.js 保留')
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
<title>插件开发规范 · Image Workbench</title>
|
||||
<link rel="icon" href="/assets/favicon.png" type="image/png">
|
||||
<link rel="apple-touch-icon" href="/assets/logo.png">
|
||||
<link rel="stylesheet" href="/assets/style.css?v=3.26.102-mwwtwp33">
|
||||
<link rel="stylesheet" href="/assets/style.css?v=3.26.104-mwwuc2q8">
|
||||
<style>
|
||||
.devdoc{max-width:860px;margin:0 auto;padding:40px 0 72px;color:var(--ink,#1b1f24);font-size:15px;line-height:1.75}
|
||||
.devdoc h1{font-size:38px;line-height:1.2;margin:8px 0 18px}
|
||||
@@ -33,7 +33,7 @@
|
||||
</div>
|
||||
<div class="right">
|
||||
<a class="btn" href="/plugins/">插件市场</a>
|
||||
<a class="btn primary" href="/download/">下载 v3.26.102</a>
|
||||
<a class="btn primary" href="/download/">下载 v3.26.104</a>
|
||||
</div>
|
||||
</div></nav>
|
||||
<main>
|
||||
|
||||
@@ -57,13 +57,13 @@
|
||||
<h2>下载</h2>
|
||||
<div class="row">
|
||||
<div class="name">macOS · Apple Silicon<div class="hint">M1 / M2 / M3 / M4</div></div>
|
||||
<div class="meta">版本 3.26.102 · 8.4 MB · .dmg<div class="hash">sha256 da83189ca8d192dd…</div></div>
|
||||
<a class="btn" href="/updates/darwin-aarch64/image-workbench_3.26.102_aarch64.dmg?h=da83189ca8d1">下载</a>
|
||||
<div class="meta">版本 3.26.104 · 8.4 MB · .dmg<div class="hash">sha256 dd043537e4f93e44…</div></div>
|
||||
<a class="btn" href="/updates/darwin-aarch64/image-workbench_3.26.104_aarch64.dmg?h=dd043537e4f9">下载</a>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="name">macOS · Intel<div class="hint">x86_64</div></div>
|
||||
<div class="meta">版本 3.26.102 · 8.8 MB · .dmg<div class="hash">sha256 bb1558f02f85158f…</div></div>
|
||||
<a class="btn" href="/updates/darwin-x86_64/image-workbench_3.26.102_x64.dmg?h=bb1558f02f85">下载</a>
|
||||
<div class="meta">版本 3.26.104 · 8.8 MB · .dmg<div class="hash">sha256 95a4b97f13f2bf39…</div></div>
|
||||
<a class="btn" href="/updates/darwin-x86_64/image-workbench_3.26.104_x64.dmg?h=95a4b97f13f2">下载</a>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="name">Windows · x64<div class="hint">需要 WebView2</div></div>
|
||||
@@ -97,6 +97,14 @@
|
||||
</ol>
|
||||
|
||||
<h2>历史版本</h2>
|
||||
<div class="row">
|
||||
<div class="name">3.26.104</div>
|
||||
<div class="meta">2026-11-26<div class="hint">macOS · Apple Silicon / macOS · Intel</div></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="name">3.26.103</div>
|
||||
<div class="meta">2026-11-26<div class="hint">macOS · Apple Silicon / macOS · Intel</div></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="name">3.26.102</div>
|
||||
<div class="meta">2026-11-26<div class="hint">macOS · Apple Silicon / macOS · Intel</div></div>
|
||||
|
||||
+8
-8
@@ -4,7 +4,7 @@
|
||||
<meta name="description" content="本地优先的 AI 生图无限画布:节点式工作流、插件按需安装、数据全部留在本机。">
|
||||
<link rel="icon" href="/assets/favicon.png" type="image/png">
|
||||
<link rel="apple-touch-icon" href="/assets/logo.png">
|
||||
<link rel="stylesheet" href="/assets/style.css?v=3.26.102-mwwtwp33">
|
||||
<link rel="stylesheet" href="/assets/style.css?v=3.26.104-mwwuc2q8">
|
||||
</head><body>
|
||||
<nav><div class="wrap inner">
|
||||
<a class="brand" href="/"><img class="logo" src="/assets/logo.png" alt="" width="26" height="26">Image Workbench</a>
|
||||
@@ -17,19 +17,19 @@
|
||||
</div>
|
||||
<div class="right">
|
||||
<a class="btn" href="/plugins/">插件市场</a>
|
||||
<a class="btn primary" href="/download/">下载 v3.26.102</a>
|
||||
<a class="btn primary" href="/download/">下载 v3.26.104</a>
|
||||
</div>
|
||||
</div></nav>
|
||||
<main>
|
||||
<section class="hero hero-art">
|
||||
<div class="hero-bg"><img src="/assets/painting.jpg?v=3.26.102-mwwtwp33" alt=""></div>
|
||||
<div class="hero-bg"><img src="/assets/painting.jpg?v=3.26.104-mwwuc2q8" alt=""></div>
|
||||
<div class="hero-veil"></div>
|
||||
<div class="wrap">
|
||||
<span class="kicker">v3.26.102 · macOS / Windows · 数据在本地</span>
|
||||
<span class="kicker">v3.26.104 · macOS / Windows · 数据在本地</span>
|
||||
<h1>本地优先的<br>AI 生图无限画布</h1>
|
||||
<p class="sub">用节点把「参考图 → 提示词 → 批量生成 → 图库」串成一条生产线。<br>图片、提示词、模型配置全部留在你自己的电脑里,插件按需安装。</p>
|
||||
<div class="cta">
|
||||
<a class="btn primary lg" href="/download/">下载 v3.26.102</a>
|
||||
<a class="btn primary lg" href="/download/">下载 v3.26.104</a>
|
||||
<a class="btn lg" href="/plugins/">浏览 13 个插件</a>
|
||||
</div>
|
||||
<div class="meta">支持 macOS 12+ 与 Windows 10 1803+ · 安装包约 7 MB · 无需登录</div>
|
||||
@@ -55,7 +55,7 @@
|
||||
<div class="grid c3">
|
||||
<div class="pcard" data-name="相册 album 一个节点装多张本地图片:宫格随节点尺寸自适应分页,一图一任务 / 批量两种模式,批量生图不用再摆一堆图片节点 图片 批量 出图" data-tags="图片,批量,出图">
|
||||
<div class="head"><span class="av" style="background:#eef2f6">🖼️</span>
|
||||
<div><div class="nm">相册</div><div class="ver">v1.1.4 · 官方</div></div></div>
|
||||
<div><div class="nm">相册</div><div class="ver">v1.1.5 · 官方</div></div></div>
|
||||
<div class="desc">一个节点装多张本地图片:宫格随节点尺寸自适应分页,一图一任务 / 批量两种模式,批量生图不用再摆一堆图片节点</div>
|
||||
<div class="tags"><span class="tag">图片</span><span class="tag">批量</span><span class="tag">出图</span></div>
|
||||
</div>
|
||||
@@ -96,8 +96,8 @@
|
||||
<section class="section"><div class="wrap">
|
||||
<h2>下载 Image Workbench</h2>
|
||||
<p class="lead">选你的平台。装过一次之后,以后在应用内「设置 → 通用 → 版本与更新」就能一键升级。</p>
|
||||
<div class="dl"><a href="/updates/darwin-aarch64/image-workbench_3.26.102_aarch64.dmg?h=da83189ca8d1"><div class="n">macOS · Apple Silicon</div><div class="s">M1 / M2 / M3 / M4 · 8.4 MB · .dmg</div></a>
|
||||
<a href="/updates/darwin-x86_64/image-workbench_3.26.102_x64.dmg?h=bb1558f02f85"><div class="n">macOS · Intel</div><div class="s">x86_64 · 8.8 MB · .dmg</div></a>
|
||||
<div class="dl"><a href="/updates/darwin-aarch64/image-workbench_3.26.104_aarch64.dmg?h=dd043537e4f9"><div class="n">macOS · Apple Silicon</div><div class="s">M1 / M2 / M3 / M4 · 8.4 MB · .dmg</div></a>
|
||||
<a href="/updates/darwin-x86_64/image-workbench_3.26.104_x64.dmg?h=95a4b97f13f2"><div class="n">macOS · Intel</div><div class="s">x86_64 · 8.8 MB · .dmg</div></a>
|
||||
<div class="none"><div class="n">Windows · x64</div><div class="s">暂未提供</div></div></div>
|
||||
<div style="margin-top:20px;color:#9ca3af;font-size:12.5px">安装包未做 Apple 公证 / Windows 代码签名,首次打开需手动放行一次,细节见 <a href="/download/" style="text-decoration:underline">下载页</a>。</div>
|
||||
</div></section>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": 2,
|
||||
"updatedAt": "2026-11-25T23:18:13.578Z",
|
||||
"updatedAt": "2026-11-26T00:46:50.447Z",
|
||||
"plugins": [
|
||||
{
|
||||
"id": "album",
|
||||
@@ -14,21 +14,21 @@
|
||||
"批量",
|
||||
"出图"
|
||||
],
|
||||
"version": "1.1.4",
|
||||
"version": "1.1.5",
|
||||
"apiVersion": 1,
|
||||
"bundle": "plugins/album-1.1.4.zip",
|
||||
"bundleSize": 59308,
|
||||
"bundleSha256": "f722811371af7f9b704c18a7d49ade8aa09790deda30b4d5abe120c8520fc850",
|
||||
"bundle": "plugins/album-1.1.5.zip",
|
||||
"bundleSize": 61989,
|
||||
"bundleSha256": "c888df972e759026fdf1e85ad2b17a8f6ee4fe9cc60ab3b3c1832be9226e28d5",
|
||||
"files": [
|
||||
{
|
||||
"path": "manifest.json",
|
||||
"sha256": "ee785ced93da4d27656fe7a0c1c43004ccbd784d8292f5e4fd4c58c3930fbf18",
|
||||
"sha256": "45cd4177eb540320315f4c6f6ed2bbfcb9f6e532f7da6c67f14a022a4aa6d460",
|
||||
"size": 593
|
||||
},
|
||||
{
|
||||
"path": "main.js",
|
||||
"sha256": "7e092c7b38842661fde9bd301306609b38f3927c7025d97f4ab29bfc04683914",
|
||||
"size": 46716
|
||||
"sha256": "af2e2dc9331b62e7a49945b855bca95bf52e6dad8e4a52c74f50c11a031e5527",
|
||||
"size": 49397
|
||||
},
|
||||
{
|
||||
"path": "styles.css",
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<title>插件市场 · Image Workbench</title>
|
||||
<link rel="icon" href="/assets/favicon.png" type="image/png">
|
||||
<link rel="apple-touch-icon" href="/assets/logo.png">
|
||||
<link rel="stylesheet" href="/assets/style.css?v=3.26.102-mwwtwp33">
|
||||
<link rel="stylesheet" href="/assets/style.css?v=3.26.104-mwwuc2q8">
|
||||
</head><body>
|
||||
<nav><div class="wrap inner">
|
||||
<a class="brand" href="/"><img class="logo" src="/assets/logo.png" alt="" width="26" height="26">Image Workbench</a>
|
||||
@@ -16,7 +16,7 @@
|
||||
</div>
|
||||
<div class="right">
|
||||
<a class="btn" href="/plugins/">插件市场</a>
|
||||
<a class="btn primary" href="/download/">下载 v3.26.102</a>
|
||||
<a class="btn primary" href="/download/">下载 v3.26.104</a>
|
||||
</div>
|
||||
</div></nav>
|
||||
<main>
|
||||
@@ -52,7 +52,7 @@
|
||||
<div class="grid c3" id="list">
|
||||
<div class="pcard" data-name="相册 album 一个节点装多张本地图片:宫格随节点尺寸自适应分页,一图一任务 / 批量两种模式,批量生图不用再摆一堆图片节点 图片 批量 出图" data-tags="图片,批量,出图">
|
||||
<div class="head"><span class="av" style="background:#eef2f6">🖼️</span>
|
||||
<div><div class="nm">相册</div><div class="ver">v1.1.4 · 官方</div></div></div>
|
||||
<div><div class="nm">相册</div><div class="ver">v1.1.5 · 官方</div></div></div>
|
||||
<div class="desc">一个节点装多张本地图片:宫格随节点尺寸自适应分页,一图一任务 / 批量两种模式,批量生图不用再摆一堆图片节点</div>
|
||||
<div class="tags"><span class="tag">图片</span><span class="tag">批量</span><span class="tag">出图</span></div>
|
||||
</div>
|
||||
|
||||
+43
-1
@@ -1,8 +1,50 @@
|
||||
{
|
||||
"app": "Image Workbench",
|
||||
"subtitle": "本地优先的 AI 生图无限画布 · 桌面版(Tauri v2)",
|
||||
"updatedAt": "2026-11-26T00:43:16.757Z",
|
||||
"updatedAt": "2026-11-26T00:55:14.291Z",
|
||||
"releases": [
|
||||
{
|
||||
"version": "3.26.104",
|
||||
"date": "2026-11-26",
|
||||
"notes": "",
|
||||
"platforms": {
|
||||
"darwin-aarch64": {
|
||||
"file": "updates/darwin-aarch64/image-workbench_3.26.104_aarch64.dmg",
|
||||
"size": 8817895,
|
||||
"sha256": "dd043537e4f93e444c6266810d6daf8fbd1d79102977244316f2429481217e04",
|
||||
"h": "dd043537e4f9",
|
||||
"kind": "dmg"
|
||||
},
|
||||
"darwin-x86_64": {
|
||||
"file": "updates/darwin-x86_64/image-workbench_3.26.104_x64.dmg",
|
||||
"size": 9233401,
|
||||
"sha256": "95a4b97f13f2bf396c37d9c455c1ed6698db696b9cca411e414e8ce3cd92343f",
|
||||
"h": "95a4b97f13f2",
|
||||
"kind": "dmg"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "3.26.103",
|
||||
"date": "2026-11-26",
|
||||
"notes": "",
|
||||
"platforms": {
|
||||
"darwin-aarch64": {
|
||||
"file": "updates/darwin-aarch64/image-workbench_3.26.103_aarch64.dmg",
|
||||
"size": 8838704,
|
||||
"sha256": "82a32ef490bf5d8ebb0ef570dac232e28639d6f1a8cd0104ab711a37a490c979",
|
||||
"h": "82a32ef490bf",
|
||||
"kind": "dmg"
|
||||
},
|
||||
"darwin-x86_64": {
|
||||
"file": "updates/darwin-x86_64/image-workbench_3.26.103_x64.dmg",
|
||||
"size": 9256749,
|
||||
"sha256": "9ed07d7f3b978773fa40ba1f6d734e9f15f6ee0c229cdb20ab418fb1bc97b56a",
|
||||
"h": "9ed07d7f3b97",
|
||||
"kind": "dmg"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "3.26.102",
|
||||
"date": "2026-11-26",
|
||||
|
||||
Generated
+1
-1
@@ -1983,7 +1983,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "image-workbench"
|
||||
version = "3.26.102"
|
||||
version = "3.26.104"
|
||||
dependencies = [
|
||||
"arboard",
|
||||
"base64 0.22.1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "image-workbench"
|
||||
version = "3.26.102"
|
||||
version = "3.26.104"
|
||||
description = "无限画布 · 生图工作台桌面版"
|
||||
authors = ["malongan"]
|
||||
license = ""
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
|
||||
"productName": "image-workbench",
|
||||
"version": "3.26.102",
|
||||
"version": "3.26.104",
|
||||
"identifier": "com.malongan.imageworkbench",
|
||||
"build": {
|
||||
"frontendDist": "../dist",
|
||||
|
||||
Reference in new issue
Block a user