Skip to content

Commit a30dca4

Browse files
authored
fix(tauri-build): set Windows FileVersion/ProductVersion strings from tauri config (tauri-apps#15288)
1 parent a219ede commit a30dca4

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-build": "patch:bug"
3+
---
4+
5+
Set the correct Windows `FileVersion` and `ProductVersion` string values using the version from the Tauri config.

crates/tauri-build/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,8 @@ pub fn try_build(attributes: Attributes) -> Result<()> {
634634
let version = (v.major << 48) | (v.minor << 32) | (v.patch << 16);
635635
res.set_version_info(VersionInfo::FILEVERSION, version);
636636
res.set_version_info(VersionInfo::PRODUCTVERSION, version);
637+
res.set("FileVersion", version_str);
638+
res.set("ProductVersion", version_str);
637639
}
638640
}
639641

0 commit comments

Comments
 (0)