Most of the existing tools to create DMG files do so by using AppleScript to manipulate the Finder graphically to generate the appropriate icon layout, which is both unstable and incompatible with headless build servers, because the necessary OS services to launch graphical applications may not be running at all. Unfortunately, it is challenging to construct such DMG files correctly, because the layout relies on several undocumented proprietary file formats, some of which date back to the Mac OS Classic days, and which are even nested within one another. dmg file, which is usually customized by using a custom image background and icon layout. Most applications on macOS are installed via a. Qbs enables you to build macOS disk images with custom backgrounds and icon layouts. This module is only available on Apple platforms. The dmg module contains properties and rules for building Apple Disk Images, which are typically used to distribute applications and installers on macOS.