Permalink
Switch branches/tags
Nothing to show
Find file Copy path
5ad8eb0 Jan 24, 2018
1 contributor

Users who have contributed to this file

executable file 14 lines (11 sloc) 651 Bytes
#!/usr/bin/env bash
# Bail at first High Sierra ISO creation error
set -e
# Borrrowed from multiple internet sources
hdiutil create -o ~/Desktop/HighSierra.cdr -size 5600m -layout SPUD -fs HFS+J
hdiutil attach ~/Desktop/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --nointeraction
hdiutil detach "/Volumes/Install macOS High Sierra"
hdiutil convert ~/Desktop/HighSierra.cdr.dmg -format UDTO -o ~/Desktop/HighSierra.iso
mv ~/Desktop/HighSierra.iso.cdr ~/Desktop/HighSierra.iso
rm ~/Desktop/HighSierra.cdr.dmg