mkdmg

The Fancy Apple Disk Image Creator

A powerful, modern CLI wrapper around hdiutil that makes creating, signing, and notarizing macOS Disk Images effortless.

go install al.essio.dev/cmd/mkdmg@latest Copied!
🚀

Simple

Create DMGs with a single command. Just provide a JSON config file.

⚙️

Configurable

JSON configuration support for reproducible, automated builds.

📦

Multiple Formats

Supports UDZO, UDBZ, ULFO, and ULMO disk image formats.

🔐

Code Signing

Integrated codesigning and notarization workflow built in.

🖥️

Filesystems

Full support for both HFS+ and APFS filesystems.

🛡️

Sandbox Safe

Create disk images that are safe for sandboxed applications.

Quick Start

# Run with default config (mkdmg.json in current directory)
mkdmg

# Override output path and source directory
mkdmg MyApp.dmg ./build

# Use a specific JSON config file
mkdmg --config path/to/config.json

# Dry run to preview commands
mkdmg --dry-run --verbose

Options

FlagDescriptionDefault
--configPath to a JSON configuration filemkdmg.json
--dry-run, -sSimulate without creating filesfalse
--verbose, -vEnable verbose outputfalse
--version, -VPrint version information and exit
--help, -hDisplay the help message and exit

Supported Formats

UDZO zlib
UDBZ bzip2
ULFO lzfse
ULMO lzma