Skip to content

Commit

Permalink
fix: Use current directory for Windows bundling tools (fix: 9895)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyNGarcia committed May 30, 2024
1 parent 253595a commit 27069a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions tooling/bundler/src/bundle/windows/msi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ const WIX_REQUIRED_FILES: &[&str] = &[
/// Runs all of the commands to build the MSI installer.
/// Returns a vector of PathBuf that shows where the MSI was created.
pub fn bundle_project(settings: &Settings, updater: bool) -> crate::Result<Vec<PathBuf>> {
let mut wix_path = dirs_next::cache_dir().unwrap();
wix_path.push("tauri/WixTools314");

let tauri_tools_path = std::env::current_dir().unwrap().join("target/tools");
let wix_path = tauri_tools_path.join("Wix");
if !wix_path.exists() {
wix::get_and_extract_wix(&wix_path)?;
} else if WIX_REQUIRED_FILES
Expand Down
2 changes: 1 addition & 1 deletion tooling/bundler/src/bundle/windows/nsis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const NSIS_REQUIRED_FILES_HASH: &[(&str, &str, &str, HashAlgorithm)] = &[(
/// Runs all of the commands to build the NSIS installer.
/// Returns a vector of PathBuf that shows where the NSIS installer was created.
pub fn bundle_project(settings: &Settings, updater: bool) -> crate::Result<Vec<PathBuf>> {
let tauri_tools_path = dirs_next::cache_dir().unwrap().join("tauri");
let tauri_tools_path = std::env::current_dir().unwrap().join("target/tools");
let nsis_toolset_path = tauri_tools_path.join("NSIS");

if !nsis_toolset_path.exists() {
Expand Down

0 comments on commit 27069a1

Please sign in to comment.