浏览代码

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

Lucas Fernandes Nogueira 2 年之前
父节点
当前提交
7aaf27ce5f
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 5 0
      .changes/fix-wix-dll-load.md
  2. 1 0
      tooling/bundler/src/bundle/windows/msi/wix.rs

+ 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);
     }