Browse Source

fix(bundler): load WiX DLLs on Github Actions (#5552)

Lucas Fernandes Nogueira 2 năm trước cách đây
mục cha
commit
7aaf27ce5f

+ 5 - 0
.changes/fix-wix-dll-load.md

@@ -0,0 +1,5 @@
+---
+"tauri-bundler": patch
+---
+
+Fix WiX DLL load on Windows Server.

+ 1 - 0
tooling/bundler/src/bundle/windows/msi/wix.rs

@@ -286,6 +286,7 @@ fn clear_env_for_wix(cmd: &mut Command) {
   let required_vars: Vec<std::ffi::OsString> =
     vec!["SYSTEMROOT".into(), "TMP".into(), "TEMP".into()];
   for (k, v) in std::env::vars_os() {
+    let k = k.to_ascii_uppercase();
     if required_vars.contains(&k) || k.to_string_lossy().starts_with("TAURI") {
       cmd.env(k, v);
     }