-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect version returned for macOS Big Sur #10
Comments
Looking at how this works, I'm not sure how this could be happening given what my plist file has.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ProductBuildVersion</key>
<string>20B50</string>
<key>ProductCopyright</key>
<string>1983-2020 Apple Inc.</string>
<key>ProductName</key>
<string>macOS</string>
<key>ProductUserVisibleVersion</key>
<string>11.0.1</string>
<key>ProductVersion</key>
<string>11.0.1</string>
<key>iOSSupportVersion</key>
<string>14.2</string>
</dict>
</plist> 🤔 |
Marketing
Plist file
macos-release seems to use macos-version uses the plist file. I don't know why the plist file has 10.16. 🤷♂️ |
AFAIK, it has that for compatibility reasons. We can just do the 10.16 to 11 mapping ourselves. |
It seems like 10.16 is a historical artifact of the Big Sur release and Apple preparing for the M1/ARM processor. https://appleinsider.com/inside/macos-10.16 From my read, it seems like 10.16 became Big Sur. Doing the mapping ourselves is fine, but then we kind of have the problem of which value to map to for the PATCH version (semver). i.e. should we map For my use, just knowing 'Big Sur' is fine so I think macos-release is a better alternative. |
From what I can remember, the plist given depends on whether the binary opening it has been compiled with the latest SDK or not. For older binaries, I think it will forever stay as 10.16, so I think it should be safe to just do a simple swap of exactly |
First, thank you for all the amazing open source libraries you've provided and supported over the years. You're a hero.
I think this repo needs to be updated for proper Big Sur support. I'm getting
10.16.0
as macOS version while running Big Sur11.0.1
. I can look into making a PR later tonight but just wanted to point it out first and make sure I wasn't missing something simple.code
output
versions
macos-release: 2.4.1
macos-version: 5.2.0
my computer
The text was updated successfully, but these errors were encountered: