MacOsInstallerToDiskImg
is a command-line utility that converts a macOS installer obtained from the App Store into a bootable disk image (ISO).
This disk image can be used to install macOS on a virtual machine (VM), or for other purposes that require an ISO image.
- Converts a macOS installer app into a bootable disk image (ISO).
- Simple and fast conversion process.
- Go (for building the project)
- macOS installer from the App Store (e.g.,
/Applications/Install macOS Mojave.app/
)
You can easily install MacOsInstallerToDiskImg
using Go by running the following command:
go install https://github.com/stephane-archer/MacOsInstallerToDiskImg@latest
This will install the executable in your $GOPATH/bin
directory, making it available for use system-wide.
If you prefer to build the utility from source, follow these steps:
- Ensure you have Go installed on your system.
- Clone or download this repository.
- Open a terminal and navigate to the project directory.
- Run the following command to build the binary:
This will generate an executable file named
go build
MacOsInstallerToDiskImg
in the current directory.
Ensure you have downloaded a macOS installer from the App Store.
You can typically find it in the /Applications
folder.
For example:
/Applications/Install macOS Mojave.app/
To convert the macOS installer into a disk image, run the following command:
MacOsInstallerToDiskImg /path/to/macos/installer.app /path/to/output.iso
For example, to convert the macOS Mojave installer into an ISO file, you would run:
MacOsInstallerToDiskImg /Applications/Install\ macOS\ Mojave.app/ ~/MacOSMojave.iso
This will create an ISO image of the macOS Mojave installer in your home directory with the name MacOSMojave.iso
.