Files
DevFlow/src-tauri/tauri.conf.json
T
lxy db8c240d95 功能: 启用 Tauri asset 协议支持 webview 本地图片预览
- Cargo.toml 开启 protocol-asset feature
- tauri.conf.json 配置 assetProtocol scope=**
- Cargo.lock 同步 http-range 依赖
2026-10-02 01:21:27 +08:00

42 lines
803 B
JSON

{
"productName": "devflow",
"version": "0.1.0",
"identifier": "top.1216.devflow",
"build": {
"beforeDevCommand": "bun dev",
"beforeBuildCommand": "bun run build",
"devUrl": "http://localhost:1420",
"frontendDist": "../dist"
},
"app": {
"windows": [
{
"title": "DevFlow",
"width": 1024,
"height": 768,
"resizable": true,
"fullscreen": false,
"devtools": true
}
],
"security": {
"csp": null,
"assetProtocol": {
"enable": true,
"scope": ["**"]
}
}
},
"bundle": {
"active": true,
"targets": ["nsis"],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
]
}
}