paw-gui/src-tauri/tauri.conf.json
2025-04-14 19:17:53 +08:00

70 lines
1.7 KiB
JSON

{
"$schema": "https://schema.tauri.app/config/2",
"productName": "paw-gui",
"identifier": "com.paw.paw-gui",
"build": {
"beforeDevCommand": "pnpm web:dev",
"devUrl": "http://127.0.0.1:1420",
"beforeBuildCommand": "pnpm web:build",
"frontendDist": "../dist"
},
"app": {
"windows": [
{
"title": "paw-gui",
"width": 1920,
"height": 1080,
"minWidth": 1280,
"minHeight": 700,
"maxWidth": 2560,
"maxHeight": 1440,
"fullscreen": false
}
],
"security": {
"assetProtocol": {
"enable": true,
"scope": {
"allow": ["**/*"]
}
},
"pattern": {
"use": "brownfield"
},
"csp": {
"default-src": "'self' asset: http://asset.localhost",
"connect-src": "'self' asset: http://asset.localhost blob: ipc: http://ipc.localhost https://api.github.com",
"img-src": "'self' asset: http://asset.localhost data:",
"media-src": "'self' asset: http://asset.localhost blob: data:",
"child-src": "'self'; object-src 'self'",
"font-src": "'self' data:",
"style-src": "'self' 'unsafe-inline'"
}
},
"withGlobalTauri": true
},
"bundle": {
"active": true,
"resources": [
"icons/32x32.png",
"icons/logo.png",
"icons/icon.icns",
"icons/icon.ico",
"assets/video/crystal-ball.mp4"
],
"externalBin": [
"sidecar/paw-core",
"sidecar/paw-install-service",
"sidecar/paw-uninstall-service",
"sidecar/paw-system-service"
],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
]
}
}