Files
dudu/desktop/src-tauri/tauri.conf.json
T
wangjia adfa1ef1e4
ci / server (push) Failing after 11s
ci / design-system (push) Failing after 12s
fix(desktop): 开启 macOSPrivateApi,透明窗口不再画白底(12A 实测反馈)
识别浮层/托盘菜单窗口虽已 transparent:true 且页面背景透明,但 macOS
上 WKWebView 需要 macOSPrivateApi 才能真透明,否则渲染白底。Cargo
侧 macos-private-api feature 已就位,仅补 conf 开关。不走 App Store
分发,私有 API 可用。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-11 07:40:40 +08:00

100 lines
2.2 KiB
JSON

{
"$schema": "https://schema.tauri.app/config/2",
"productName": "dudu",
"version": "0.1.0",
"identifier": "app.dudu.desktop",
"build": {
"beforeDevCommand": "npm run dev",
"devUrl": "http://localhost:5181",
"beforeBuildCommand": "npm run build",
"frontendDist": "../dist"
},
"app": {
"windows": [
{
"label": "settings",
"title": "dudu 设置",
"url": "index.html",
"width": 440,
"height": 560,
"resizable": false,
"visible": false,
"titleBarStyle": "Overlay",
"hiddenTitle": true
},
{
"label": "overlay",
"title": "dudu",
"url": "overlay.html",
"width": 360,
"height": 140,
"visible": false,
"transparent": true,
"decorations": false,
"alwaysOnTop": true,
"focus": false,
"skipTaskbar": true,
"shadow": false
},
{
"label": "login",
"title": "dudu — 登录",
"url": "login.html",
"width": 400,
"height": 520,
"resizable": false,
"visible": false
},
{
"label": "tray",
"title": "dudu",
"url": "tray.html",
"width": 248,
"height": 300,
"resizable": false,
"visible": false,
"transparent": true,
"decorations": false,
"alwaysOnTop": true,
"skipTaskbar": true,
"shadow": false
},
{
"label": "feedback",
"title": "反馈问题",
"url": "feedback.html",
"width": 460,
"height": 560,
"resizable": false,
"center": true,
"visible": false
},
{
"label": "onboarding",
"title": "欢迎使用 dudu",
"url": "onboarding.html",
"width": 560,
"height": 480,
"resizable": false,
"center": true,
"visible": false
}
],
"security": {
"csp": null
},
"macOSPrivateApi": true
},
"bundle": {
"active": true,
"targets": "all",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
]
}
}