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.
This commit is contained in:
Your Name
2026-02-07 11:00:45 +02:00
parent 2a12e04788
commit 5109310059
+1 -1
View File
@@ -11,7 +11,7 @@ crate-type = ["lib", "staticlib"]
tauri-build = { version = "2", features = [] } tauri-build = { version = "2", features = [] }
[dependencies] [dependencies]
tauri = { version = "2", features = ["tray-icon"] } tauri = { version = "2", features = ["tray-icon", "custom-protocol"] }
tauri-plugin-shell = "2" tauri-plugin-shell = "2"
tauri-plugin-notification = "2" tauri-plugin-notification = "2"
tauri-plugin-global-shortcut = "2" tauri-plugin-global-shortcut = "2"