diff --git a/.changes/windows-versioninfo-strings.md b/.changes/windows-versioninfo-strings.md new file mode 100644 index 000000000000..ea0e772b0df6 --- /dev/null +++ b/.changes/windows-versioninfo-strings.md @@ -0,0 +1,5 @@ +--- +"tauri-build": "patch:bug" +--- + +Set the correct Windows `FileVersion` and `ProductVersion` string values using the version from the Tauri config. diff --git a/crates/tauri-build/src/lib.rs b/crates/tauri-build/src/lib.rs index cdf44f50edc3..7ce48744f0b6 100644 --- a/crates/tauri-build/src/lib.rs +++ b/crates/tauri-build/src/lib.rs @@ -634,6 +634,8 @@ pub fn try_build(attributes: Attributes) -> Result<()> { let version = (v.major << 48) | (v.minor << 32) | (v.patch << 16); res.set_version_info(VersionInfo::FILEVERSION, version); res.set_version_info(VersionInfo::PRODUCTVERSION, version); + res.set("FileVersion", version_str); + res.set("ProductVersion", version_str); } }