forked from imbytecat/fullstack-starter
- 添加 Tauri 开发和构建脚本,优化开发流程并分离 Vite 与 Tauri 的启动命令。 - 配置开发和构建命令,指定使用 Bun 运行开发与构建脚本,并设置开发服务器地址。 - 配置开发服务器端口为3000并强制使用该端口,同时忽略src-tauri目录的文件监听。
31 lines
652 B
JSON
31 lines
652 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",
|
|
"devUrl": "http://localhost:3000",
|
|
"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"]
|
|
}
|
|
}
|