Skip to content

Commit

Permalink
fix(cli.rs): ensure target/release/wix exists, closes #2927 (#2987)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Dec 7, 2021
1 parent 1f800e8 commit 17a1ad6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/cli.rs-wix-license.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"cli.rs": patch
---

Fix `tauri build` failing on Windows if `tauri.conf.json > tauri > bundle > Windows > wix > license` is used.
3 changes: 3 additions & 0 deletions tooling/bundler/src/bundle/windows/msi/wix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,9 @@ pub fn build_wix_app_installer(
)?;
}

// ensure that `target/{release, debug}/wix` folder exists
std::fs::create_dir_all(settings.project_out_directory().join("wix"))?;

let output_path = settings.project_out_directory().join("wix").join(arch);

let mut data = BTreeMap::new();
Expand Down

0 comments on commit 17a1ad6

Please sign in to comment.