From 0e6edeb14f379af1e02a7cebb4e3a5c9e87ebf7f Mon Sep 17 00:00:00 2001 From: Robin van Boven <497556+Beanow@users.noreply.github.com> Date: Wed, 29 Jun 2022 04:44:14 +0200 Subject: [PATCH] fix(cli): Don't add `pkg-config` to `deb` (#4508) --- .changes/bundler-deb-rm-pkg-config.md | 8 ++++++++ tooling/cli/src/interface/rust.rs | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changes/bundler-deb-rm-pkg-config.md diff --git a/.changes/bundler-deb-rm-pkg-config.md b/.changes/bundler-deb-rm-pkg-config.md new file mode 100644 index 000000000..5bb2ba4f0 --- /dev/null +++ b/.changes/bundler-deb-rm-pkg-config.md @@ -0,0 +1,8 @@ +--- +'cli.js': patch +'cli.rs': patch +--- + +No longer adds the `pkg-config` dependency to `.deb` packages when the `systemTray` is used. +This only works with recent versions of `libappindicator-sys` (including https://github.com/tauri-apps/libappindicator-rs/pull/38), +so a `cargo update` may be necessary if you create `.deb` bundles and use the tray feature. diff --git a/tooling/cli/src/interface/rust.rs b/tooling/cli/src/interface/rust.rs index 91c4c21c9..f64214d3d 100644 --- a/tooling/cli/src/interface/rust.rs +++ b/tooling/cli/src/interface/rust.rs @@ -862,7 +862,6 @@ fn tauri_config_to_bundle_settings( #[cfg(target_os = "linux")] { if let Some(system_tray_config) = &system_tray_config { - depends.push("pkg-config".to_string()); let tray = std::env::var("TAURI_TRAY").unwrap_or_else(|_| "ayatana".to_string()); if tray == "ayatana" { depends.push("libayatana-appindicator3-1".into());