create-dmg automates assembling a styled .dmg disk image for distributing macOS applications. It optionally embeds license files and attempts code signing when certificates are present.
Overview
create-dmg is a Node.js command-line tool for developers who export macOS apps from Xcode and need a polished disk image for distribution outside the Mac App Store. It focuses on a simple, opinionated workflow rather than extensive customization options.
Running the CLI produces a drag-to-Applications layout with a filename pattern such as App Name 0.0.0.dmg. If license.txt or license.rtf exists in the working directory, the image requires agreement before mounting.
The tool tries to code sign the DMG when keys are available but still succeeds when signing fails, which helps CI environments without Apple certificates. Documentation reminds users to notarize finished images separately.
Installation requires Node.js 20 or later via npm, and the author notes related packaging utilities for broader release automation.
Key features
- Automated DMG layout
- Optional license agreement
- Code signing attempts
- CI-friendly unsigned builds
- Node.js 20 plus requirement
Use cases
- Shipping indie macOS apps
- CI DMG artifacts
- Quick release packaging