mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
fix(bundler): unset NSISDIR and NSISCONFDIR when running makensis (#8376)
closes #8359
This commit is contained in:
5
.changes/bundler-nsis-nsisdir.md
Normal file
5
.changes/bundler-nsis-nsisdir.md
Normal 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.
|
||||
@@ -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")?;
|
||||
|
||||
Reference in New Issue
Block a user