Skip to content

Commit

Permalink
implement migration for config and cargo manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Aug 3, 2023
1 parent a0103c1 commit b26e3b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tooling/cli/src/migrate/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ fn migrate_config(config: &mut Value) -> Result<()> {
process_allowlist(tauri_config, &mut plugins, allowlist)?;
}

if let Some(tray) = tauri_config.remove("systemTray") {
tauri_config.insert("trayIcon".into(), tray);
}

// cli
if let Some(cli) = tauri_config.remove("cli") {
process_cli(&mut plugins, cli)?;
Expand Down
1 change: 1 addition & 0 deletions tooling/cli/src/migrate/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ fn features_to_remove() -> Vec<&'static str> {
features_to_remove.push("shell-open-api");
features_to_remove.push("windows7-compat");
features_to_remove.push("updater");
features_to_remove.push("system-tray");

// this allowlist feature was not removed
let index = features_to_remove
Expand Down

0 comments on commit b26e3b3

Please sign in to comment.