Files
comfy-downloader/src-tauri/tauri.conf.json
Vixalie 773f6d9f4d build(tauri): 添加操作系统插件并调整窗口配置
- 在 package.json 和 Cargo.toml 中添加 @tauri-apps/plugin-os 依赖
- 在 default.json 中添加 os:default 权限
- 在 lib.rs 中初始化 tauri_plugin_os
- 在 tauri.conf.json 中设置 hiddenTitle 为 true 并添加 titleBarStyle 为 Overlay
2025-08-04 22:43:57 +08:00

41 lines
906 B
JSON

{
"$schema": "https://schema.tauri.app/config/2",
"productName": "comfy-downloader",
"version": "0.1.0",
"identifier": "new.archgrid.app.comfy.downloader",
"build": {
"beforeDevCommand": "deno task dev",
"devUrl": "http://localhost:1420",
"beforeBuildCommand": "deno task build",
"frontendDist": "../dist"
},
"app": {
"windows": [
{
"title": "Comfy Resource Downloader",
"width": 1200,
"height": 800,
"minWidth": 1200,
"minHeight": 800,
"resizable": true,
"hiddenTitle": true,
"titleBarStyle": "Overlay",
"theme": "Dark"
}
],
"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"
]
}
}