From 7b11e157c4859156ed774e6c1d3aa8eb23e875f2 Mon Sep 17 00:00:00 2001 From: huzibaca Date: Wed, 4 Sep 2024 05:57:37 +0800 Subject: [PATCH] chore: update capabilities --- src-tauri/Cargo.toml | 16 +++++++++++++--- src-tauri/src/utils/resolve.rs | 2 -- src-tauri/tauri.conf.json | 1 + 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index e5c84c8..e56d6a3 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -10,7 +10,7 @@ edition = "2021" build = "build.rs" [build-dependencies] -tauri-build = { version= "2.0.0-rc", features = [] } +tauri-build = { version = "2.0.0-rc", features = [] } [dependencies] warp = "0.3" @@ -36,8 +36,14 @@ window-shadows = { version = "0.2.2" } 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"] } +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", +] } 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 diff --git a/src-tauri/src/utils/resolve.rs b/src-tauri/src/utils/resolve.rs index e333531..d97fdcb 100644 --- a/src-tauri/src/utils/resolve.rs +++ b/src-tauri/src/utils/resolve.rs @@ -11,8 +11,6 @@ use tauri::{App, AppHandle, Manager}; // use window_shadows::set_shadow; use tauri_plugin_notification::NotificationExt; - - pub static VERSION: OnceCell = OnceCell::new(); pub fn find_unused_port() -> Result { diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 94c40df..d6e6bf7 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -38,6 +38,7 @@ }, "app": { "security": { + "capabilities": ["desktop-capability", "migrated"], "assetProtocol": { "scope": ["$APPDATA/**", "$RESOURCE/../**", "**"], "enable": true