143684011b
新增 bubblewrap 工作区写入、控制目录保护和默认断网沙箱 统一 command.exec、command.start 与 project.verify 的启动和审计边界 开放 Linux 通用项目命令并保留非 Linux 固定命令兼容边界 补齐持久进程元数据、真实进程测试、共享契约和发布依赖 同步真实 Provider 结论、已知竞态与项目长期文档
51 lines
1.9 KiB
JSON
51 lines
1.9 KiB
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "Genarrative AI Game Creator",
|
|
"version": "0.1.0",
|
|
"identifier": "world.genarrative.ai-game-creator",
|
|
"build": {
|
|
"beforeDevCommand": "npm --prefix ../.. run agc:serve",
|
|
"beforeBuildCommand": "npm --prefix ../.. run ai-game-creator-shell:typecheck && npm --prefix ../.. exec vite -- build --config vite.config.ts",
|
|
"devUrl": "http://127.0.0.1:3080/",
|
|
"frontendDist": "../dist"
|
|
},
|
|
"app": {
|
|
"withGlobalTauri": true,
|
|
"windows": [
|
|
{
|
|
"label": "client",
|
|
"title": "AI 游戏创作",
|
|
"url": "index.html",
|
|
"width": 820,
|
|
"height": 640,
|
|
"minWidth": 720,
|
|
"minHeight": 520
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": "default-src 'self' customprotocol: asset:; img-src 'self' asset: data: blob:; media-src 'self' asset: data: blob:; connect-src 'self' http://127.0.0.1:* ws://127.0.0.1:*; script-src 'self'; style-src 'self' 'unsafe-inline'; frame-src 'self'",
|
|
"devCsp": "default-src 'self' customprotocol: asset: http://127.0.0.1:*; img-src 'self' asset: http://127.0.0.1:* data: blob:; media-src 'self' asset: http://127.0.0.1:* data: blob:; connect-src 'self' http://127.0.0.1:* ws://127.0.0.1:*; script-src 'self'; style-src 'self' 'unsafe-inline'; frame-src 'self' http://127.0.0.1:*"
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": "all",
|
|
"linux": {
|
|
"deb": {
|
|
"depends": ["bubblewrap"]
|
|
},
|
|
"rpm": {
|
|
"depends": ["bubblewrap"]
|
|
}
|
|
},
|
|
"icon": [
|
|
"../../desktop-shell/src-tauri/icons/32x32.png",
|
|
"../../desktop-shell/src-tauri/icons/128x128.png",
|
|
"../../desktop-shell/src-tauri/icons/128x128@2x.png",
|
|
"../../desktop-shell/src-tauri/icons/icon.icns",
|
|
"../../desktop-shell/src-tauri/icons/icon.ico",
|
|
"../../desktop-shell/src-tauri/icons/icon.png"
|
|
]
|
|
}
|
|
}
|