Skip to content

Instantly share code, notes, and snippets.

@colinbendell
Created June 24, 2020 13:25
Show Gist options
  • Save colinbendell/563aa16bd4944264203928b0562733f3 to your computer and use it in GitHub Desktop.
Save colinbendell/563aa16bd4944264203928b0562733f3 to your computer and use it in GitHub Desktop.
cd ~/Downloads/
sudo hdiutil create -o InstallMedia -size 20G -layout SPUD -fs HFS+J -type SPARSE
sudo hdiutil attach InstallMedia.sparseimage -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ Beta.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build
sudo hdiutil detach -force /Volumes/Install\ macOS\ */
# ^^ Might fail; manually eject using finder.
sudo hdiutil convert InstallMedia.sparseimage -format UDZO -o InstallMedia.dmg
sudo rm InstallMedia.sparseimage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment