dmg

  1. AppStore ==> search ‘install macos’ ==> get installer ==> du -sh /Applications/Install\ macOS\ Mojave.app/
  2. Disk Utility ==> File ==> New Image ==> Blank Image
    1. Size: installer size
    2. Format: Mac OS Extended (Journaled)
    3. Partition: Single partition - GUID Partition Map
    4. Image Format: read/write disk image
    5. same as hdiutil create -o ~/Desktop/macOS\ Mojave -size 6500m -layout SPUD -fs HFS+J
  3. sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/macOS\ Mojave

iso

  1. hdiutil convert ~/Desktop/macOS\ Mojave.dmg -format UDTO -o ~/Desktop/macOS\ Mojave.iso
  2. mv ~/Desktop/macOS\ Mojave.iso.cdr ~/Desktop/macOS\ Mojave.iso