Files
image-workbench-desktop/src-tauri/tauri.conf.json
T
qiqi 5987e96ecc
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 2m7s
feat(storage): 本机快照 + data.json 多代备份 + 启动只读(v3.26.270)
- src/snapshot-store.js:内容寻址快照(画板 30 份/7 天、data.json 10 份),失败降级
- flush 写前/删除前拍快照;data.json 写前轮转
- loadInto 不再用 data.json 残留副本重写画板(只清残留键 + 强制重写一次 data.json);recoverFromWebStorage 仅恢复缺失/空文件
- data.json 损坏 → initFail bad-data;恢复页列备份并可一键恢复(损坏文件另存 .corrupt-*)
- 「更多 → 画板历史…」:列表/恢复/已删除恢复为新画板(src/ui-board-history.js)
- 单测:snapshot-store 5、启动守卫 8;棘轮:app 9,637→9,693、Workbench 2,807→2,862(装配)
2026-12-06 22:19:31 +08:00

55 lines
1.8 KiB
JSON

{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "image-workbench",
"version": "3.26.270",
"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"
}
}
}