2026-07-21 14:43:14 +08:00
|
|
|
{
|
|
|
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
|
|
|
"productName": "AstrBot Desktop",
|
|
|
|
|
"version": "0.1.0-alpha.2",
|
|
|
|
|
"identifier": "com.yokiirobw.astrbot-desktop",
|
|
|
|
|
"build": {
|
|
|
|
|
"beforeDevCommand": "npm run dev",
|
|
|
|
|
"devUrl": "http://127.0.0.1:1420",
|
|
|
|
|
"beforeBuildCommand": "npm run build",
|
|
|
|
|
"frontendDist": "../dist"
|
|
|
|
|
},
|
|
|
|
|
"app": {
|
|
|
|
|
"windows": [
|
|
|
|
|
{
|
|
|
|
|
"label": "main",
|
|
|
|
|
"title": "AstrBot Desktop",
|
|
|
|
|
"width": 1100,
|
|
|
|
|
"height": 760,
|
|
|
|
|
"minWidth": 720,
|
|
|
|
|
"minHeight": 520,
|
|
|
|
|
"center": true,
|
|
|
|
|
"resizable": true,
|
|
|
|
|
"decorations": false,
|
|
|
|
|
"shadow": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "desktop-pet",
|
|
|
|
|
"title": "AstrBot Pet",
|
|
|
|
|
"url": "index.html?view=pet",
|
|
|
|
|
"width": 180,
|
|
|
|
|
"height": 220,
|
|
|
|
|
"resizable": false,
|
|
|
|
|
"decorations": false,
|
|
|
|
|
"shadow": false,
|
|
|
|
|
"transparent": true,
|
|
|
|
|
"alwaysOnTop": true,
|
|
|
|
|
"skipTaskbar": true,
|
|
|
|
|
"visible": false,
|
|
|
|
|
"x": 120,
|
|
|
|
|
"y": 120,
|
|
|
|
|
"create": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"security": {
|
|
|
|
|
"csp": "default-src \u0027self\u0027; connect-src ipc: http://ipc.localhost http://127.0.0.1:*; img-src \u0027self\u0027 asset: http://asset.localhost data:; style-src \u0027self\u0027 \u0027unsafe-inline\u0027; script-src \u0027self\u0027"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"bundle": {
|
|
|
|
|
"active": true,
|
|
|
|
|
"targets": ["nsis"],
|
|
|
|
|
"icon": [
|
|
|
|
|
"icons/32x32.png",
|
|
|
|
|
"icons/128x128.png",
|
|
|
|
|
"icons/128x128@2x.png",
|
|
|
|
|
"icons/icon.ico"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|