- 在 package.json 和 Cargo.toml 中添加 @tauri-apps/plugin-os 依赖 - 在 default.json 中添加 os:default 权限 - 在 lib.rs 中初始化 tauri_plugin_os - 在 tauri.conf.json 中设置 hiddenTitle 为 true 并添加 titleBarStyle 为 Overlay
17 lines
346 B
JSON
17 lines
346 B
JSON
{
|
|
"$schema": "../gen/schemas/desktop-schema.json",
|
|
"identifier": "default",
|
|
"description": "Capability for the main window",
|
|
"windows": [
|
|
"main"
|
|
],
|
|
"permissions": [
|
|
"core:default",
|
|
"opener:default",
|
|
"core:window:allow-start-dragging",
|
|
"store:default",
|
|
"fs:default",
|
|
"dialog:default",
|
|
"os:default"
|
|
]
|
|
} |