Skip to content

Instantly share code, notes, and snippets.

@dankogai
Last active November 13, 2017 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dankogai/b7207666742ae5e3e8522b816a3278b1 to your computer and use it in GitHub Desktop.
Save dankogai/b7207666742ae5e3e8522b816a3278b1 to your computer and use it in GitHub Desktop.
Make High Sierra Installer
#!/bin/sh
#
# Use at your own risk
#
hdiutil create -o /tmp/macOS13.cdr -size 5130m -layout SPUD -fs HFS+J
hdiutil attach /tmp/macOS13.cdr.dmg -noverify -mountpoint /Volumes/cdrimg
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/cdrimg
mv /tmp/macOS13.cdr.dmg ~/Desktop/macOS13.dmg
hdiutil detach /Volumes/Install\ macOS\ High\ Sierra
hdiutil convert ~/Desktop/macOS13.dmg -format UDTO -o ~/Desktop/macOS13.iso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment