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:
2026-02-07 11:00:45 +02:00
parent 4d907f3547
commit 7c7fc8cbb9

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"