浏览代码

fix(bundler): modify version in output file name when bundling wix (#8182)

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
moka-ayumu 1 年之前
父节点
当前提交
34196e25c4
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 5 0
      .changes/fix-wix-output-filename-version.md
  2. 2 1
      tooling/bundler/src/bundle/windows/msi/wix.rs

+ 5 - 0
.changes/fix-wix-output-filename-version.md

@@ -0,0 +1,5 @@
+---
+"tauri-bundler": 'patch:bug'
+---
+
+Use original version string on WiX output file name.

+ 2 - 1
tooling/bundler/src/bundle/windows/msi/wix.rs

@@ -807,7 +807,8 @@ pub fn build_wix_app_installer(
       "*.wixobj".into(),
     ];
     let msi_output_path = output_path.join("output.msi");
-    let msi_path = app_installer_output_path(settings, &language, &app_version, updater)?;
+    let msi_path =
+      app_installer_output_path(settings, &language, settings.version_string(), updater)?;
     create_dir_all(msi_path.parent().unwrap())?;
 
     info!(action = "Running"; "light to produce {}", display_path(&msi_path));