AstrBot-Desktop/src-tauri/tauri.conf.json

40 行
1,011 B
JSON

{
"$schema": "https://schema.tauri.app/config/2",
"productName": "AstrBot Desktop",
"version": "0.1.0-alpha.0",
"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
}
],
"security": {
"csp": "default-src 'self'; connect-src ipc: http://ipc.localhost http://127.0.0.1:*; img-src 'self' asset: http://asset.localhost data:; style-src 'self' 'unsafe-inline'; script-src 'self'"
}
},
"bundle": {
"active": true,
"targets": ["nsis"],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.ico"
]
}
}