Files
image-workbench-desktop/src-tauri/tauri.conf.json
T
qiqi ab546911ac
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 44s
fix(preview): wResolveImg 认 __file,相册的图在组合节点/参考图里不再破图;内置 album 1.1.0
一、预览链根因(用户报「相册的图传到组合节点显示不出内容」)
  wResolveImg 是所有节点预览的唯一入口(图片节点 / 参考图 mini / 组合节点 / 插件节点),
  但它只认 __blob / __cache,遇到相册写的 { __file: 绝对路径 } 就把引用对象原样返回,
  上层 wThumbSrc 里 String(对象) 得到 [object Object] ⇒ img 的 src 就是个坏字符串 ⇒ 破图。
  而 wEnsureImgUrl / wImgRefDataUrl 早就支持读盘 —— 只差这个入口判定,加 wIsFileRef 即可。
  生成不受影响(走 wImgRefDataUrl),所以这个 bug 一直只在「预览」里可见。

二、内置 album 1.1.0(方形宫格 / 清除按钮 / 放大镜 hover 预览 + 点击全屏 / 5 个布局翻页 bug)

三、新增 tests/image-file-ref-preview-test.js(12 项,已接入 test:unit)
  行为断言三种引用键互不冲突 + 源断言 wResolveImg 入口含 __file、四个读盘入口都在。
  这类「入口少一个分支」的漏很难手工发现,钉成断言。

版本 3.26.69(dmg 随发布链重建)
2026-11-25 09:53:09 +08:00

55 lines
1.8 KiB
JSON

{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "image-workbench",
"version": "3.26.69",
"identifier": "com.malongan.imageworkbench",
"build": {
"frontendDist": "../dist",
"beforeDevCommand": "npm run build",
"beforeBuildCommand": "npm run lint && npm run build && node scripts/strip-plugins.js"
},
"app": {
"withGlobalTauri": true,
"windows": [
{
"label": "main",
"title": "无限画布",
"width": 1440,
"height": 900,
"minWidth": 1024,
"minHeight": 640,
"resizable": true,
"fullscreen": false,
"center": true,
"dragDropEnabled": false
}
],
"security": {
"csp": "default-src 'self'; script-src 'self' blob:; worker-src 'self' blob:; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https:; font-src 'self' data:; connect-src 'self' ipc: http://ipc.localhost https: blob: data: http://127.0.0.1:30092 http://localhost:30092; object-src 'none'; base-uri 'none'; frame-ancestors 'none'"
}
},
"bundle": {
"active": true,
"targets": "all",
"category": "GraphicsAndDesign",
"shortDescription": "无限画布 · 生图工作台",
"longDescription": "节点式无限画布,本地编排与生成图片,支持系统原生另存为。",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/[email protected]",
"icons/icon.icns",
"icons/icon.ico"
],
"createUpdaterArtifacts": true
},
"plugins": {
"updater": {
"endpoints": [
"https://download.maqiart.eu.org/updates/latest.json"
],
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDE3QUU1N0QwQUM5RjE1RjEKUldUeEZaK3MwRmV1RnhjNVhhSlhaSHkvbVRXNDdscHpOa0s0VHF4NHBBQVJBdDQ0dEVlck5FeEsK"
}
}
}