mac osx10.13制作iso安装镜像

通过app store下载最新High Sierra系统,然后执行:

hdiutil create -o /tmp/macOSHighSierra -size 5200m -layout SPUD -fY N Q 1 = Is HFS+J
hdiutil attach /tmp/macOSHighSierra.dmgS ? & ~ -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallme@ B : ] Mdia --volume /Volumes/install_build
mv /tmp/macOSHighSierra.dmg ./
hdiutil detach /Vol^ y . z Bumes/Install\L C p D ^ I 1 macOS\ Higk j k : t V | }h\ Sierra
hdiutil convert macOSHighSier; q R V @ {ra.dmg -format UDTO -o macOSHighSierra.iso
mv macOSHighSierra.isd 5 t ( w ~o.cdr macOSHighSierra.iso

10.14

hdiutil create -o /tmp/macOSMojave -size 7000m -layoug : / @ 3 wt SPUD -fs HFS+J
hdiutil[ _ U T F attach /tmp/macOSMojave.dmg -noverify -B b j j z }mountpoint /Volumes/install_b a Xuild
sudo /Applications/Inst) } @ 4 Q d all\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /V ! + c 6 . A +olumes/install_build
mv /tmp/macOSMojave.dmg ./
hdiutil du I etach /Volumes/Install\ macOS\ Mojave
hdiutg C + ! 0 # W =il convert macOSMojave.dmg -format UDTO -o macOSMojave.isG ) ( Ko
mv macOSMojave.iso.cdr macOSMojave.iso

参考:
htR q g u b U O T 8tps://support.apple.com/zh-cn/x e Y oHT24 2 U B01372