diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 2aaf7de..9ba4e65 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -23,10 +23,9 @@ futures-util = { version = "0.3.32", features = ["io"] } tauri-plugin-decorum = "1.1.1" tauri-plugin-fs = "2.4.5" zip = "8.2.0" -libc = "0.2.182" tauri-plugin-dialog = "2.6.0" tauri-plugin-notification = "2.3.3" -sysinfo = "0.38.3" +sysinfo = "0.38.4" sha2 = "0.10.9" tauri-plugin-clipboard-manager = "2.3.2" tauri-plugin-prevent-default = "4.0.4" @@ -34,11 +33,9 @@ openssl = { version = "0.10.75", features = ["v110", "vendored"] } base64 = "0.22.1" tauri-plugin-http = "2.5.7" -[target.'cfg(target_os = "linux")'.dependencies] -shlex = "1.3.0" - [target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies] tauri-plugin-single-instance = "2.4.0" tauri-plugin-window-state = "2.4.1" - +[target.'cfg(target_os = "windows")'.dependencies] +tauri-plugin-decorum = "1.1.1" diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index d918d7d..61f9b4e 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -22,9 +22,6 @@ use tokio::io::AsyncReadExt; use tokio::{io::AsyncWriteExt, time::timeout}; use zip::ZipArchive; -#[cfg(target_os = "windows")] -use tauri_plugin_decorum::WebviewWindowExt; - #[cfg(unix)] use std::os::unix::fs::PermissionsExt; @@ -541,6 +538,7 @@ pub fn run() { .setup(|app| { #[cfg(target_os = "windows")] { + use tauri_plugin_decorum::WebviewWindowExt; if let Some(main_window) = app.get_webview_window("main") { if let Err(e) = main_window.create_overlay_titlebar() { eprintln!("Failed to create overlay titlebar: {:?}", e);