Add OS.get_version_alias()
to return a human-readable Windows/macOS version number
#100372
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Windows 11's major version number is actually 10.x.x, which can be confusing if you don't know about this quirk.
OS.get_version_alias()
avoids this by displaying the "branding" version number and the build number as a suffix, so that individual updates can still be distinguished from each other.On macOS,
OS.get_version_alias()
returns the version number prepended with the version name (e.g. Sequoia for macOS 15).On other operating systems, this returns the same value as
OS.get_version()
.OS::get_version_alias()
godot-proposals#11292.Preview
Various uses of Copy System Info when running under WINE, using
winecfg
to modify the Windows version reported to applications:winecfg
doesn't have options to report Windows Server 2016, 2019, 2022 or 2025 as of wine-staging 9.15, so I've based the detection on this information.TODO