fix(bundler): unset NSISDIR and NSISCONFDIR when running makensis (#8376)

closes #8359
This commit is contained in:
Amr Bashir
2023-12-12 12:17:03 +02:00
committed by GitHub
parent 327c7aec30
commit 777ddf434a
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
'tauri-bundler': 'patch:bug'
---
Unset `NSISDIR` and `NSISCONFDIR` when running `makensis.exe` so it doesn't conflict with NSIS installed by the user.

View File

@@ -457,6 +457,8 @@ fn build_nsis_app_installer(
_ => "-V4",
})
.arg(installer_nsi_path)
.env_remove("NSISDIR")
.env_remove("NSISCONFDIR")
.current_dir(output_path)
.piped()
.context("error running makensis.exe")?;