mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-14 20:55:26 +02:00
chore: update tauri
This commit is contained in:
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user