- Replace per-OS map with array: ["app","dmg","nsis","appimage"].
- Align with Tauri v2 config; resolves schema validation error.
- Keeps Windows portable ("app") target enabled.
41 lines
1004 B
JSON
41 lines
1004 B
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "CC Switch",
|
|
"version": "3.0.0",
|
|
"identifier": "com.ccswitch.app",
|
|
"build": {
|
|
"frontendDist": "../dist",
|
|
"devUrl": "http://localhost:3000",
|
|
"beforeDevCommand": "pnpm run dev:renderer",
|
|
"beforeBuildCommand": "pnpm run build:renderer"
|
|
},
|
|
"app": {
|
|
"windows": [
|
|
{
|
|
"title": "",
|
|
"width": 900,
|
|
"height": 650,
|
|
"minWidth": 800,
|
|
"minHeight": 600,
|
|
"resizable": true,
|
|
"fullscreen": false,
|
|
"titleBarStyle": "Transparent"
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": "default-src 'self'; img-src 'self' data:; script-src 'self'; style-src 'self' 'unsafe-inline'; connect-src 'self' https: http:"
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": ["app", "dmg", "nsis", "appimage"],
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/icon.icns",
|
|
"icons/icon.ico"
|
|
]
|
|
}
|
|
}
|