- 更新 tauri.conf.json 配置正确的前端构建路径 - 调整开发服务器端口为 Vite 默认端口 5173 - 添加 Tauri 前端依赖包 - 窗口拖拽样式已兼容
40 lines
863 B
JSON
40 lines
863 B
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "CC Switch",
|
|
"version": "3.0.0-beta.1",
|
|
"identifier": "com.ccswitch.app",
|
|
"build": {
|
|
"frontendDist": "../dist",
|
|
"devUrl": "http://localhost:5173",
|
|
"beforeDevCommand": "pnpm run dev:renderer",
|
|
"beforeBuildCommand": "pnpm run build:renderer"
|
|
},
|
|
"app": {
|
|
"windows": [
|
|
{
|
|
"title": "CC Switch - Claude Code 供应商切换工具",
|
|
"width": 900,
|
|
"height": 650,
|
|
"minWidth": 800,
|
|
"minHeight": 600,
|
|
"resizable": true,
|
|
"fullscreen": false
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": null
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": "all",
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/icon.icns",
|
|
"icons/icon.ico"
|
|
]
|
|
}
|
|
}
|