- 更新开发模式说明,明确开发时需手动启动前端服务器并支持热重载,生产模式自动启动侧车二进制,优化端口管理策略并完善最佳实践文档。 - 根据开发模式自动切换端口检测逻辑,开发模式下直接连接本地3000端口并等待服务器就绪,生产模式下正常启动sidecar并扫描可用端口,提升开发体验和启动可靠性。 - 移除开发环境URL配置,使用默认的开发服务器地址
30 lines
613 B
JSON
30 lines
613 B
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "tauri-shell",
|
|
"version": "0.1.0",
|
|
"identifier": "com.imbytecat.tauri-shell",
|
|
"build": {
|
|
"beforeDevCommand": "bun run dev:vite",
|
|
"beforeBuildCommand": "bun run build"
|
|
},
|
|
"app": {
|
|
"withGlobalTauri": true,
|
|
"windows": [],
|
|
"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"
|
|
],
|
|
"externalBin": ["binaries/server"]
|
|
}
|
|
}
|