Created
September 11, 2018 15:17
-
-
Save mikesplain/5d015263f9cdd5169209086be2fbc87f to your computer and use it in GitHub Desktop.
Convert mac os high sierra app to iso
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
installer="/Applications/Install macOS High Sierra.app" | |
hdiutil create -o /tmp/HighSierra.cdr -size 5500m -layout SPUD -fs HFS+J | |
hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
sudo "$installer"/Contents/Resources/createinstallmedia --volume /Volumes/install_build | |
mv /tmp/HighSierra.cdr.dmg ~/Downloads/InstallSystem.dmg | |
hdiutil detach /Volumes/Install\ macOS\ High\ Sierra | |
hdiutil convert ~/Downloads/InstallSystem.dmg -format UDTO -o ~/Downloads/HighSierra.iso |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment