chore: update capabilities

This commit is contained in:
huzibaca 2024-09-04 05:57:37 +08:00
parent 5783b7b392
commit 7b11e157c4
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302
3 changed files with 14 additions and 5 deletions

View File

@ -37,7 +37,13 @@ tokio = { version = "1", features = ["full"] }
serde = { version = "1.0", features = ["derive"] }
reqwest = { version = "0.12", features = ["json", "rustls-tls"] }
sysproxy = { git = "https://github.com/zzzgydi/sysproxy-rs", branch = "main" }
tauri = { version= "2.0.0-rc", features = [ "protocol-asset", "devtools", "tray-icon", "image-ico", "image-png"] }
tauri = { version = "2.0.0-rc", features = [
"protocol-asset",
"devtools",
"tray-icon",
"image-ico",
"image-png",
] }
network-interface = { version = "2.0.0", features = ["serde"] }
tauri-plugin-shell = "2.0.0-rc"
tauri-plugin-dialog = "2.0.0-rc"
@ -68,3 +74,7 @@ panic = "abort"
codegen-units = 1
lto = true
opt-level = "s"
strip = true
[profile.dev]
incremental = true

View File

@ -11,8 +11,6 @@ use tauri::{App, AppHandle, Manager};
// use window_shadows::set_shadow;
use tauri_plugin_notification::NotificationExt;
pub static VERSION: OnceCell<String> = OnceCell::new();
pub fn find_unused_port() -> Result<u16> {

View File

@ -38,6 +38,7 @@
},
"app": {
"security": {
"capabilities": ["desktop-capability", "migrated"],
"assetProtocol": {
"scope": ["$APPDATA/**", "$RESOURCE/../**", "**"],
"enable": true