Finding a script on GitHub that could take the official Apple .pkg installer and wrap it into a disk image.
Once the 12GB+ download completes, the installer window will automatically launch. ; press Command + Q to quit the installer immediately. Method B: Using the Terminal Fetch Command Extract ISO image from macOS Somona installer - GitHub Gist mac os sonoma download iso
This is a common requirement for installing macOS on (like VMware or VirtualBox) or for creating a bootable offline backup. Finding a script on GitHub that could take
This .app bundle contains a custom bootable file system, but it is not an ISO. To create a bootable installer, Apple provides the createinstallmedia command—which writes the .app contents to a USB drive in a proprietary, HFS+/APFS format that a Windows PC cannot natively read. Method B: Using the Terminal Fetch Command Extract