kc9wwh / macOSUpgrade

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

Update to add support for Catalina and the "lite" Install macOS *.app #134

Closed erefneb closed 4 years ago

erefneb commented 4 years ago

Updated "validate_free_space" to work with Catalina – freeSpace Added "Print :APFSContainerFree" /usr/libexec/PlistBuddy -c "Print :APFSContainerFree" /dev/stdin <<< "$diskInfoPlist" 2>/dev/null || /usr/libexec/PlistBuddy -c "Print :FreeSpace" /dev/stdin <<< "$diskInfoPlist" 2>/dev/null || /usr/libexec/PlistBuddy -c "Print :AvailableSpace" /dev/stdin <<< "$diskInfoPlist" 2>/dev/null

Updated loopCout to work with Stub/Lite installer – Stub/Lite installer does not specify a macOS version. Check to see if the installer version matches, or if the installer does not have InstallInfo.plist. if [ "$currentInstallerVersion" = "$installerVersion" ] || [[ ! -e "$OSInstaller/Contents/SharedSupport/InstallInfo.plist" ]]; then

Updated variable "currentUser" to Apple recommended method.

kc9wwh commented 4 years ago

Approving commit. Thank you @ericbenfer for this and thank you @taniguti for your continued help with this as well!