Created by
Zhiwei Li
last modified
| #!/bin/sh
hdiutil attach /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil create -o /tmp/ElCapitan -size 7236m -layout SPUD -fs HFS+J -type UDTO
hdiutil attach /tmp/ElCapitan.cdr -noverify -nobrowse -mountpoint /Volumes/install_build
asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages
cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/
cp /Volumes/install_app/BaseSystem.* /Volumes/OS\ X\ Base\ System/
hdiutil detach /Volumes/install_app
hdiutil detach /Volumes/OS\ X\ Base\ System/
mv /tmp/ElCapitan.iso.cdr ~/Desktop/ElCapitan.iso
|