- Place the macOS installer app under the
application
directory. - Follow the below steps in the terminal.
$ # Create a directory to output the ISO image
$ cd ~/Desktop
$ mkdir iso
$ cd iso
$ # Download the script (the below is for HighSierra)
$ curl -LO https://gist.github.com/raw/3b139cbf785a16727501dd4e5c0cf4bf/create_dmg_highsierra.sh
# # Execute the script and create the installer image
$ chmod +x create_iso_highsierra.sh
$ sudo ./create_iso_highsierra.sh