1 | hdiutil create -size 13G -fs hfs+ -volname macOSInstaller -type SPARSEBUNDLE ~/macOSInstaller |
1 | hdiutil attach ~/macOSInstaller.sparsebundle |
1 | sudo /Applications/Install\ macOS\ Beta.app/Contents/Resources/createinstallmedia --volume /Volumes/macOSInstaller --nointeraction |
卸载镜像
1 | hdiutil makehybrid -o ~/macOSInstaller ~/macOSInstaller.sparsebundle |