Skip to content

Commit 17a1ad6

Browse files
authored
fix(cli.rs): ensure target/release/wix exists, closes #2927 (#2987)
1 parent 1f800e8 commit 17a1ad6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changes/cli.rs-wix-license.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"cli.rs": patch
3+
---
4+
5+
Fix `tauri build` failing on Windows if `tauri.conf.json > tauri > bundle > Windows > wix > license` is used.

tooling/bundler/src/bundle/windows/msi/wix.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,9 @@ pub fn build_wix_app_installer(
407407
)?;
408408
}
409409

410+
// ensure that `target/{release, debug}/wix` folder exists
411+
std::fs::create_dir_all(settings.project_out_directory().join("wix"))?;
412+
410413
let output_path = settings.project_out_directory().join("wix").join(arch);
411414

412415
let mut data = BTreeMap::new();

0 commit comments

Comments
 (0)