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 e0afe9a2c1
commit 9d36e07228

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"