From 7c7fc8cbb9c967fbcf064a7e7ce78c3d294f26bb Mon Sep 17 00:00:00 2001 From: lashman Date: Sat, 7 Feb 2026 11:00:45 +0200 Subject: [PATCH] Enable custom-protocol for embedded frontend assets Without this feature, Tauri falls back to devUrl even in release builds. The tauri CLI adds it automatically but direct cargo builds need it in Cargo.toml. --- src-tauri/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index d670d8f..e5e2c0c 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -11,7 +11,7 @@ crate-type = ["lib", "staticlib"] tauri-build = { version = "2", features = [] } [dependencies] -tauri = { version = "2", features = ["tray-icon"] } +tauri = { version = "2", features = ["tray-icon", "custom-protocol"] } tauri-plugin-shell = "2" tauri-plugin-notification = "2" tauri-plugin-global-shortcut = "2"