Skip to content

Instantly share code, notes, and snippets.

@gjyoung1974
Created March 4, 2019 15:10
Show Gist options
  • Save gjyoung1974/2141aa82fd507dfd07af7a3aca043cc9 to your computer and use it in GitHub Desktop.
Save gjyoung1974/2141aa82fd507dfd07af7a3aca043cc9 to your computer and use it in GitHub Desktop.
Make macOS Mojave DVD Iso
#!/bin/bash
# Create a High Sierra ISO for CICD stuffs
hdiutil create -o /tmp/Mojave.cdr -size 7500m -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 --nointeraction --downloadassets
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment