fix(cli): Don't add pkg-config to deb (#4508)

This commit is contained in:
Robin van Boven
2022-06-29 04:44:14 +02:00
committed by GitHub
parent 94e581b8d0
commit 0e6edeb14f
2 changed files with 8 additions and 1 deletions

View File

@@ -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.

View File

@@ -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());