Skip to content

Commit

Permalink
do not enable tray-icon by default
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Aug 13, 2023
1 parent 9a62c32 commit 2c20d6b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion core/tauri-build/src/allowlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ pub fn check(config: &Config, manifest: &mut Manifest) -> Result<()> {
name: "tauri".into(),
alias: None,
kind: DependencyKind::Normal,
all_cli_managed_features: Some(TauriConfig::all_features()),
all_cli_managed_features: Some(
TauriConfig::all_features()
.into_iter()
.filter(|f| f != &"tray-icon")
.collect(),
),
expected_features: config
.tauri
.features()
Expand Down
2 changes: 1 addition & 1 deletion core/tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ tokio = { version = "1", features = [ "full" ] }
cargo_toml = "0.15"

[features]
default = [ "wry", "compression", "objc-exception", "tray-icon/common-controls-v6", "muda/common-controls-v6" ]
default = [ "wry", "compression", "objc-exception", "tray-icon?/common-controls-v6", "muda/common-controls-v6" ]
tray-icon = [ "dep:tray-icon" ]
test = [ ]
compression = [ "tauri-macros/compression", "tauri-utils/compression" ]
Expand Down
1 change: 1 addition & 0 deletions examples/api/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ features = [
"icon-png",
"isolation",
"macos-private-api",
"tray-icon"
]

[dev-dependencies.tauri]
Expand Down

0 comments on commit 2c20d6b

Please sign in to comment.