Skip to content

Instantly share code, notes, and snippets.

@DjinnGA
Last active April 4, 2021 01:59
Show Gist options
  • Save DjinnGA/37c9470e70a663315fd2064793ae0531 to your computer and use it in GitHub Desktop.
Save DjinnGA/37c9470e70a663315fd2064793ae0531 to your computer and use it in GitHub Desktop.
Convert MacOS 10.14 Mojave Beta 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\ 10.14\ Beta.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build
mv /tmp/Mojave.cdr.dmg ~/Desktop/InstallSystem.dmg
hdiutil detach /Volumes/Install\ macOS\ 10.14\ Beta
hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/Mojave.iso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment