Last active
May 20, 2023 22:39
-
-
Save arag0re/7456597f9f8e3777711155569e94c653 to your computer and use it in GitHub Desktop.
create-iso-from-dmg
This file contains hidden or 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 | |
# Bail at first Catalina ISO creation error | |
set -e | |
hdiutil create -o ~/Downloads/Catalina.cdr -size 7316m -layout SPUD -fs HFS+J | |
hdiutil attach ~/Downloads/Catalina.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
sudo ~/Downloads/"Install macOS Catalina".app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --nointeraction | |
hdiutil detach "/Volumes/Install macOS Catalina" | |
hdiutil convert ~/Downloads/Catalina.cdr.dmg -format UDTO -o ~/Downloads/Catalina.iso | |
mv ~/Downloads/Catalina.iso.cdr /Volumes/"USB_STICK_NAME"/Catalina.iso | |
rm ~/Downloads/Catalina.cdr.dmg |
This file contains hidden or 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 | |
# Bail at first High Sierra ISO creation error | |
set -e | |
hdiutil create -o ~/Downloads/HighSierra.cdr -size 7316m -layout SPUD -fs HFS+J | |
hdiutil attach ~/Downloads/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
sudo ~/Downloads/"Install macOS High Sierra".app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --nointeraction | |
hdiutil detach "/Volumes/Install macOS High Sierra" | |
hdiutil convert ~/Downloads/HighSierra.cdr.dmg -format UDTO -o ~/Downloads/HighSierra.iso | |
mv ~/Downloads/HighSierra.iso.cdr /Volumes/"USB_STICK_NAME"/HighSierra.iso | |
rm ~/Downloads/HighSierra.cdr.dmg |
This file contains hidden or 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 | |
# Bail at first Mojave ISO creation error | |
set -e | |
hdiutil create -o ~/Downloads/Mojave.cdr -size 7316m -layout SPUD -fs HFS+J | |
hdiutil attach ~/Downloads/Mojave.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
sudo ~/Downloads/"Install macOS Mojave".app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --nointeraction | |
hdiutil detach "/Volumes/Install macOS Mojave" | |
hdiutil convert ~/Downloads/Mojave.cdr.dmg -format UDTO -o ~/Downloads/Mojave.iso | |
mv ~/Downloads/Mojave.iso.cdr /Volumes/"USB_STICK_NAME"/Mojave.iso | |
rm ~/Downloads/Mojave.cdr.dmg |
This file contains hidden or 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 | |
# Bail at first Monterey ISO creation error | |
set -e | |
hdiutil create -o ~/Downloads/Monterey.cdr -size 14000m -layout SPUD -fs HFS+J | |
hdiutil attach ~/Downloads/Monterey.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
sudo ~/Downloads/"Install macOS Monterey".app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --nointeraction | |
hdiutil detach "/Volumes/Install macOS Monterey" | |
hdiutil convert ~/Downloads/Monterey.cdr.dmg -format UDTO -o ~/Downloads/Monterey.iso | |
mv ~/Downloads/Monterey.iso.cdr /Volumes/"USB_STICK_NAME"/Monterey.iso | |
rm ~/Downloads/Monterey.cdr.dmg |
This file contains hidden or 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 | |
# Bail at first Monterey ISO creation error | |
set -e | |
hdiutil create -o ~/Downloads/Ventura.cdr -size 14000m -layout SPUD -fs HFS+J | |
hdiutil attach ~/Downloads/Ventura.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
sudo /Applications/"Install macOS 13 beta".app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --nointeraction | |
hdiutil detach "/Volumes/Install macOS 13 beta" | |
hdiutil convert ~/Downloads/Ventura.cdr.dmg -format UDTO -o ~/Downloads/Ventura.iso | |
mv ~/Downloads/Ventura.iso.cdr ~/Downloads/Ventura.iso | |
rm ~/Downloads/Ventura.cdr.dmg |
This file contains hidden or 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 | |
# Bail at first BigSur ISO creation error | |
set -e | |
hdiutil create -o ~/Downloads/BigSur.cdr -size 7316m -layout SPUD -fs HFS+J | |
hdiutil attach ~/Downloads/BigSur.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
sudo ~/Downloads/"Install macOS Big Sur".app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --nointeraction | |
hdiutil detach "/Volumes/Install macOS Big Sur" | |
hdiutil convert ~/Downloads/BigSur.cdr.dmg -format UDTO -o ~/Downloads/BigSur.iso | |
mv ~/Downloads/BigSur.iso.cdr /Volumes/"USB_STICK_NAME"/BigSur.iso | |
rm ~/Downloads/BigSur.cdr.dmg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pogchamp