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:
@@ -14,7 +14,7 @@
|
||||
"@tauri-apps/plugin-deep-link": "2.4.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tauri-apps/cli-cef": "3.0.0-alpha.6",
|
||||
"@tauri-apps/cli-cef": "3.0.0-alpha.26",
|
||||
"typescript": "^6.0.0",
|
||||
"vite": "^8.0.1"
|
||||
}
|
||||
|
||||
@@ -19,7 +19,13 @@ tauri-build = { workspace = true }
|
||||
[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-deep-link = { path = "../../../" }
|
||||
tauri-plugin-log = { path = "../../../../log" }
|
||||
tauri-plugin-single-instance = { path = "../../../../single-instance", features = [
|
||||
@@ -28,6 +34,9 @@ tauri-plugin-single-instance = { path = "../../../../single-instance", features
|
||||
log = "0.4"
|
||||
|
||||
[features]
|
||||
default = ["wry"]
|
||||
wry = ["dep:tauri-runtime-wry"]
|
||||
cef = ["dep:tauri-runtime-cef"]
|
||||
# this feature is used for production builds or when `devUrl` points to the filesystem and the built-in dev server is disabled.
|
||||
# If you use cargo directly instead of tauri's cli you can use this feature flag to switch between tauri's `dev` and `build` modes.
|
||||
# DO NOT REMOVE!!
|
||||
|
||||
@@ -10,10 +10,19 @@ fn greet(name: &str) -> String {
|
||||
format!("Hello, {name}! You've been greeted from Rust!")
|
||||
}
|
||||
|
||||
// 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)]
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
#[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());
|
||||
|
||||
#[allow(unused_mut)]
|
||||
let mut builder = tauri::Builder::default();
|
||||
let mut builder = builder;
|
||||
|
||||
#[cfg(desktop)]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user