kc9wwh / macOSUpgrade

Workflow for doing in-place upgrades.
Other
420 stars 103 forks source link

Potential issue with specifying OS version for macOS 11+ #168

Closed redshirtdave closed 3 years ago

redshirtdave commented 3 years ago

If you intend to deploy the 'Install macOS Big Sur.app' which is now installing macOS 11.2.1 (Installer app version 16.4.06), then you would need to specify 11.2 as version, because the logic in the script will return 11.2, not 11.2.1.

Output when specifying 11.2.1

Script result: installerVersion 11.2.1 installerVersion_Full_Integer 110201 installerVersion_Major_Integer 1102

This might affect future macOS versions

UESCDurandal commented 3 years ago

Unfortunately the problem is that Apple didn't increment the DTPlatformVersion value in the macOS 11.2.1 installer's /Contents/Info.plist file. The new installer still has 11.2 when they should have changed it to 11.2.1

I've just kept my installerVersion variable to 11.2 even though I'm installing 11.2.1 until Apple fixes it

sdagley commented 3 years ago

The Big Sur 11.3.1 installer also lists 11.3 as the DTPlatformVersion

redshirtdave commented 3 years ago

At this point I think it's safe to say this will be the norm. If you want a specific patch version the script needs to be changed for that target. Otherwise you must use the major.minor format