Last active
June 23, 2020 06:52
-
-
Save cameronrye/4b9ce1723e66b20a36522c3ee4880084 to your computer and use it in GitHub Desktop.
Create macOS Big Sur Beta ISO Image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Create Disk Image | |
hdiutil create -o /tmp/BigSur.cdr -size 12000m -layout SPUD -fs HFS+J | |
# Mount it | |
hdiutil attach /tmp/BigSur.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
# Create macOS Big Sur Installer | |
sudo /Applications/Install\ macOS\ Beta.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --nointeraction | |
# Unmount Big Sur Disk | |
hdiutil detach /Volumes/Install\ macOS\ Beta | |
# Convert file to a iso image | |
hdiutil convert /tmp/BigSur.cdr.dmg -format UDTO -o /tmp/BigSur.iso | |
# Rename and Move to Desktop | |
mv /tmp/BigSur.iso.cdr ~/BigSur.iso | |
# Cleanup | |
rm /tmp/BigSur.cdr.dmg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment