fix(cli.rs): ensure `target/release/wix` exists, closes #2927 (#2987)

This commit is contained in:
Amr Bashir 2021-12-07 16:01:17 +02:00 committed by GitHub
parent 1f800e83b6
commit 17a1ad6823
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
"cli.rs": patch
---
Fix `tauri build` failing on Windows if `tauri.conf.json > tauri > bundle > Windows > wix > license` is used.

View File

@ -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();