chore: update tauri

This commit is contained in:
Lucas Nogueira
2026-09-08 17:53:34 -03:00
parent 1423992771
commit 835adce473
34 changed files with 866 additions and 272 deletions
@@ -9,6 +9,6 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@tauri-apps/cli-cef": "3.0.0-alpha.6"
"@tauri-apps/cli-cef": "3.0.0-alpha.26"
}
}
@@ -10,7 +10,13 @@ rust-version = "1.77.2"
[dependencies]
serde = { workspace = true }
serde_json = { workspace = true }
tauri = { workspace = true, features = ["wry", "common-controls-v6", "x11"] }
tauri = { workspace = true, features = ["common-controls-v6"] }
# The webview runtime is picked by depending on its crate and handing its
# attributes to `tauri::Builder::runtime`.
tauri-runtime-wry = { workspace = true, optional = true, features = [
"common-controls-v6",
] }
tauri-runtime-cef = { workspace = true, optional = true }
tauri-plugin-single-instance = { path = "../../../" }
tauri-plugin-cli = { path = "../../../../cli" }
@@ -18,4 +24,7 @@ tauri-plugin-cli = { path = "../../../../cli" }
tauri-build = { workspace = true }
[features]
default = ["wry"]
wry = ["dep:tauri-runtime-wry"]
cef = ["dep:tauri-runtime-cef"]
prod = ["tauri/custom-protocol"]
@@ -7,8 +7,17 @@
windows_subsystem = "windows"
)]
// Every CEF application is also its own renderer, GPU, network and utility
// process. This attribute runs the helper side of that and returns before the
// Tauri application is built, for any process Chromium launched with `--type=`.
#[cfg_attr(feature = "cef", tauri_runtime_cef::cef_entry_point)]
fn main() {
tauri::Builder::default()
#[cfg(feature = "cef")]
let builder = tauri::Builder::default().runtime(tauri_runtime_cef::Cef::default());
#[cfg(not(feature = "cef"))]
let builder = tauri::Builder::default().runtime(tauri_runtime_wry::Wry::default());
builder
.plugin(
tauri_plugin_single_instance::Builder::new()
.callback(move |app, argv, cwd| {