通过app store下载最新High Sierra系统,然后执行:
hdiutil create -o /tmp/macOSHighSierra -size 5200m -layout SPUD -fs HFS+J
hdiutil attach /tmp/macOSHighSierra.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build
mv /tmp/macOSHighSierra.dmg ./
hdiutil detach /Volumes/Install\ macOS\ High\ Sierra
hdiutil convert macOSHighSierra.dmg -format UDTO -o macOSHighSierra.iso
mv macOSHighSierra.iso.cdr macOSHighSierra.iso
10.14
hdiutil create -o /tmp/macOSMojave -size 7000m -layout SPUD -fs HFS+J
hdiutil attach /tmp/macOSMojave.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build
mv /tmp/macOSMojave.dmg ./
hdiutil detach /Volumes/Install\ macOS\ Mojave
hdiutil convert macOSMojave.dmg -format UDTO -o macOSMojave.iso
mv macOSMojave.iso.cdr macOSMojave.iso
更新:
10.15
hdiutil create -o /tmp/macOSCatalina -size 8100m -layout SPUD -fs HFS+J
hdiutil attach /tmp/macOSCatalina.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build
hdiutil detach /Volumes/Install\ macOS\ Catalina
mv /tmp/macOSCatalina.dmg ./
hdiutil convert macOSCatalina.dmg -format UDTO -o macOSCatalina.iso
mv macOSCatalina.iso.cdr macOSCatalina.iso
12.3:
hdiutil create -o /tmp/macOSMonterey -size 13000m -layout SPUD -fs HFS+J
hdiutil attach /tmp/macOSMonterey.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build
hdiutil detach /Volumes/Install\ macOS\ Monterey
mv /tmp/macOSMonterey.dmg ./
hdiutil convert macOSMonterey.dmg -format UDTO -o macOSMonterey.iso
mv macOSMonterey.iso.cdr macOSMonterey.iso
10.15后系统自带softwareupdate可选择相应版本系统下载:
softwareupdate --fetch-full-installer --full-installer-version 10.15.7
也可使用gibMacOS下载。
各版本dmg sha1校验码:
https://github.com/notpeter/apple-installer-checksums
参考:
https://support.apple.com/zh-cn/HT201372
标签:macos
要要下载