Skip to content

Instantly share code, notes, and snippets.

@Kutkovsky
Forked from jamieparfet/macOS-mojave-iso.sh
Created June 10, 2019 10:46
Show Gist options
  • Save Kutkovsky/07fd7544e1c8f8c98cc292a70c81a1e6 to your computer and use it in GitHub Desktop.
Save Kutkovsky/07fd7544e1c8f8c98cc292a70c81a1e6 to your computer and use it in GitHub Desktop.

Revisions

  1. @jamieparfet jamieparfet revised this gist Nov 29, 2018. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion macOS-mojave-iso.sh
    Original file line number Diff line number Diff line change
    @@ -12,4 +12,7 @@ hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/mojave.iso
    mv ~/Desktop/mojave.iso.cdr ~/Desktop/mojave.iso
    rm ~/Desktop/InstallSystem.dmg

    # Now there should be an ISO on your desktop called mojave.iso
    # Now there should be an ISO on your desktop called mojave.iso
    # Once mojave is installed, in order to install VMware tools to enable full-screen resolution, run:
    sudo spctl --master-enable
    # on the guest OS. That will disable Gatekeeper and allow any apps and the necessary kexts to run
  2. @jamieparfet jamieparfet created this gist Nov 28, 2018.
    15 changes: 15 additions & 0 deletions macOS-mojave-iso.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #!/bin/bash

    # This assumes that the ~6GB mojave installer is in the /Applications folder.
    # If it's not, just open the App Store, search Mojave, and you can download the installer file from there.

    hdiutil create -o /tmp/mojave.cdr -size 6g -layout SPUD -fs HFS+J
    hdiutil attach /tmp/mojave.cdr.dmg -noverify -mountpoint /Volumes/install_mojave
    sudo /Applications/Install\ macOS\ mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/install_mojave
    mv /tmp/mojave.cdr.dmg ~/Desktop/InstallSystem.dmg
    hdiutil detach /Volumes/Install\ macOS\ mojave
    hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/mojave.iso
    mv ~/Desktop/mojave.iso.cdr ~/Desktop/mojave.iso
    rm ~/Desktop/InstallSystem.dmg

    # Now there should be an ISO on your desktop called mojave.iso