mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
Fall back to FileVersion when an EXE installer has FileVersion but not ProductVersion (#25070)
For #23541 # Checklist for submitter If some of the following don't apply, delete the relevant line. <!-- Note that API documentation changes are now addressed by the product design team. --> - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files) for more information. - [x] Manual QA for all new/changed functionality
This commit is contained in:
parent
43aec4722e
commit
5a30b477c6
2 changed files with 3 additions and 0 deletions
1
changes/23541-fileversion-fallback
Normal file
1
changes/23541-fileversion-fallback
Normal file
|
|
@ -0,0 +1 @@
|
|||
* Added fallback to FileVersion on EXE installers when FileVersion is set but ProductVersion isn't to allow more custom packages to be uploaded
|
||||
|
|
@ -72,6 +72,8 @@ func ExtractPEMetadata(tfr *fleet.TempFileReader) (*InstallerMetadata, error) {
|
|||
}
|
||||
if productVersion != "" {
|
||||
version = productVersion
|
||||
} else if strings.TrimSpace(e["FileVersion"]) != "" {
|
||||
version = strings.TrimSpace(e["FileVersion"])
|
||||
}
|
||||
}
|
||||
if name == "" && sfxName != "" {
|
||||
|
|
|
|||
Loading…
Reference in a new issue