Skip to content

Instantly share code, notes, and snippets.

@src256
Last active July 29, 2023 02:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save src256/521142d1cdf85bab3a56cea9982f5c10 to your computer and use it in GitHub Desktop.
Save src256/521142d1cdf85bab3a56cea9982f5c10 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -eux
hdiutil create -o /tmp/ventura -size 16384m -volname ventura -layout SPUD -fs HFS+J
hdiutil attach /tmp/ventura.dmg -noverify -mountpoint /Volumes/ventura
sudo /Applications/Install\ macOS\ Ventura\.app//Contents/Resources/createinstallmedia --volume /Volumes/vent\
ura --nointeraction
hdiutil eject -force /Volumes/Install\ macOS\ Ventura
hdiutil convert /tmp/ventura.dmg -format UDTO -o ~/Desktop/ventura.cdr
mv ~/Desktop/ventura.cdr ~/Desktop/ventura.iso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment