mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-28 20:48:52 +03:00
fix(cli.rs): enable the updater
feature on cli (#1597)
This commit is contained in:
parent
82ef8f6a92
commit
9490b257d2
5
.changes/updater-feature.md
Normal file
5
.changes/updater-feature.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"cli.rs": patch
|
||||
---
|
||||
|
||||
Enable `tauri` `updater` feature when `tauri.conf.json > tauri > updater > active` is set to `true`.
|
@ -11,7 +11,7 @@ tauri-build = { path = "../../../core/tauri-build" }
|
||||
[dependencies]
|
||||
serde_json = "1.0"
|
||||
serde = { version = "1.0", features = [ "derive" ] }
|
||||
tauri = { path = "../../../core/tauri", features =["api-all", "cli"]}
|
||||
tauri = { path = "../../../core/tauri", features =["api-all", "cli", "updater"]}
|
||||
|
||||
[features]
|
||||
default = [ "custom-protocol" ]
|
||||
|
@ -11,7 +11,7 @@ tauri-build = { path = "../../../core/tauri-build", features = [ "codegen" ]}
|
||||
[dependencies]
|
||||
serde_json = "1.0"
|
||||
serde = { version = "1.0", features = [ "derive" ] }
|
||||
tauri = { path = "../../../core/tauri", features =["api-all"]}
|
||||
tauri = { path = "../../../core/tauri", features =["api-all", "updater"]}
|
||||
|
||||
[features]
|
||||
default = [ "custom-protocol" ]
|
||||
|
@ -38,6 +38,9 @@ pub fn rewrite_manifest(config: ConfigHandle) -> crate::Result<()> {
|
||||
if config.tauri.cli.is_some() {
|
||||
features.push("cli").unwrap();
|
||||
}
|
||||
if config.tauri.updater.active {
|
||||
features.push("updater").unwrap();
|
||||
}
|
||||
|
||||
match tauri {
|
||||
Value::InlineTable(tauri_def) => {
|
||||
|
Loading…
Reference in New Issue
Block a user