Skip to content

Instantly share code, notes, and snippets.

@HenryYang
Forked from DjinnGA/prepare-iso.sh
Last active December 23, 2018 15:00
Show Gist options
  • Save HenryYang/9e8ee9b85e1691b0c41eed20b813cdd7 to your computer and use it in GitHub Desktop.
Save HenryYang/9e8ee9b85e1691b0c41eed20b813cdd7 to your computer and use it in GitHub Desktop.
Convert MacOS 10.14 Mojave Installer App To ISO File
#!/bin/bash
hdiutil create -o /tmp/Mojave.cdr -size 8g -layout SPUD -fs HFS+J
hdiutil attach /tmp/Mojave.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build
mv /tmp/Mojave.cdr.dmg ~/Desktop/InstallSystem.dmg
hdiutil detach /Volumes/Install\ macOS\ Mojave
hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/Mojave.iso
mv ~/Desktop/Mojave.iso.cdr ~/Desktop/Mojave.iso
@HenryYang
Copy link
Author

screen shot 2018-10-02 at 4 12 00 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment