Creating a USB Installer

When making a Hackintosh or a HackBook, one of the things that you need to learn to do is creating USB Installer for macOS. If not, you will have to rely on someone else to make one for you with the bootloader baked in. Below are the invocations that you will need.

Note: “–applicationpath” will be deprecated in macOS 10.14 and greater.

Mojave
sudo /Applications/Install\ macOS\ Mojave\ Beta.app/Contents/Resources/createinstallmedia --volume /Volumes/GixxerUSB --applicationpath /Applications/Install\ macOS\ Mojave.app

High Sierra:
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/GixxerUSB --applicationpath /Applications/Install\ macOS\ High\ Sierra.app

Sierra:
sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/GixxerUSB --applicationpath /Applications/Install\ macOS\ Sierra.app

El Capitan:
sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/GixxerUSB --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app

Yosemite:
sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/GixxerUSB --applicationpath /Applications/Install\ OS\ X\ Yosemite.app

Mavericks:
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/GixxerUSB --applicationpath /Applications/Install\ OS\ X\ Mavericks.app