8bd8363ffa
将原生壳公开主站统一为 www.genarrative.world 调整 Tauri release 直接加载线上主站并移除 frontendDist 打包 补齐创作入口配置开发代理与回归测试 同步原生壳方案文档和共享记忆
53 lines
1.6 KiB
JSON
53 lines
1.6 KiB
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "Genarrative",
|
|
"version": "0.1.0",
|
|
"identifier": "world.genarrative.desktop",
|
|
"build": {
|
|
"beforeDevCommand": "npm --prefix ../.. run dev:web -- --web-port 3000 --strict-web-port",
|
|
"beforeBuildCommand": "npm run typecheck",
|
|
"devUrl": "http://127.0.0.1:3000/"
|
|
},
|
|
"app": {
|
|
"windows": [
|
|
{
|
|
"create": false,
|
|
"label": "main",
|
|
"url": "https://www.genarrative.world/",
|
|
"title": "Genarrative",
|
|
"width": 1280,
|
|
"height": 820,
|
|
"minWidth": 960,
|
|
"minHeight": 640,
|
|
"devtools": false
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": "default-src 'self' customprotocol: asset:; img-src 'self' asset: https: data: blob:; media-src 'self' asset: https: data: blob:; connect-src 'self' https: wss:; 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:* https: data: blob:; media-src 'self' asset: http://127.0.0.1:* https: data: blob:; connect-src 'self' http://127.0.0.1:* https: ws://127.0.0.1:* wss:; script-src 'self'; style-src 'self' 'unsafe-inline'; frame-src 'self' http://127.0.0.1:*"
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": "all",
|
|
"macOS": {
|
|
"infoPlist": "Info.plist"
|
|
},
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/icon.icns",
|
|
"icons/icon.ico",
|
|
"icons/icon.png"
|
|
]
|
|
},
|
|
"plugins": {
|
|
"deep-link": {
|
|
"desktop": {
|
|
"schemes": ["genarrative"]
|
|
}
|
|
}
|
|
}
|
|
}
|