瀏覽代碼

fix(tauri-build): skip validating tray-icon feature flag (#7610)

Lucas Fernandes Nogueira 2 年之前
父節點
當前提交
560b34dd2a
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. 5 0
      .changes/fix-tray-icon-validation.md
  2. 1 0
      core/tauri-build/src/allowlist.rs

+ 5 - 0
.changes/fix-tray-icon-validation.md

@@ -0,0 +1,5 @@
+---
+"tauri-build": patch:bug
+---
+
+Skip validation of the `tray-icon` feature flag.

+ 1 - 0
core/tauri-build/src/allowlist.rs

@@ -53,6 +53,7 @@ pub fn check(config: &Config, manifest: &mut Manifest) -> Result<()> {
         .tauri
         .features()
         .into_iter()
+        .filter(|f| f != &"tray-icon")
         .map(|f| f.to_string())
         .collect::<Vec<String>>(),
     },