Py2/py3 script that can download macOS components direct from Apple
Can also now build Internet Recovery USB installers from Windows using dd and 7zip.
NOTE: As of macOS 11 (Big Sur), Apple has changed the way they distribute macOS, and internet recovery USBs can no longer be built via MakeInstall on Windows. macOS versions through Catalina will still work though.
NOTE 2: As of macOS 11 (Big Sur), Apple distributes the OS via an InstallAssistant.pkg file. BuildmacOSInstallApp.command is not needed to create the install application when in macOS in this case - and you can simply run InstallAssistant.pkg, which will place the install app in your /Applications folder on macOS.
NOTE 3: It appears that others are attempting to leverage the gibMacOS name to potentially deliver malware. Valid copies of the script can always be retrieved here on GitHub. For your safety, it is best to avoid any 3rd party rehosts.
Thanks to:
- FoxletFox for FetchMacOS and outlining the URL setup
- munki for his macadmin-scripts
- timsutton for brigadier
- wolfmannight for manOSDownloader_rc off which BuildmacOSInstallApp.command is based