Create a good-looking DMG for your macOS app in seconds
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets Init Mar 27, 2017 Make the default output name for humans Apr 29, 2018
stuff Init Mar 27, 2017
.editorconfig Meta tweaks Oct 23, 2017
.gitattributes Init Mar 27, 2017
.gitignore Meta tweaks Oct 23, 2017
.npmrc Meta tweaks Oct 23, 2017
.travis.yml Require Node.js 8 Apr 29, 2018
cli.js Throw a different error code when code signing fails (#29) Nov 12, 2018
license Meta tweaks Oct 23, 2017
package.json 3.2.0 Oct 17, 2018 Add `--overwrite` flag Apr 29, 2018
screenshot-cli.gif Improve description and CLI screenshot Mar 31, 2017
screenshot-dmg.png Init Mar 27, 2017
test.js Update dependencies Oct 17, 2018

create-dmg Build Status

Create a good-looking DMG for your macOS app in seconds

Imagine you have finished a macOS app, exported it from Xcode, and now want to distribute it to users. The most common way of distributing an app outside the Mac App Store is by putting it in a .dmg file. These are hard to create, especially good-looking ones. You can either pay for a GUI app where you have to customize an existing design or you can run some homebrewed Bash script and you still have to design it. This tool does everything for you, so you can play with your 🐈 instead.

Discuss it on Product Hunt and Twitter.

This tool is intentionally opinionated and simple. I'm not interested in adding lots of options.

You might also find my LaunchAtLogin project useful.


Ensure you have Node.js 8 or later installed. Then run the following:

$ npm install --global create-dmg


$ create-dmg --help

    $ create-dmg <app> [destination]

    --overwrite  Overwrite existing DMG with the same name

    $ create-dmg ''
    $ create-dmg '' Build/Releases


The DMG requires macOS 10.11 or later and has the filename App Name 0.0.0.dmg, for example Lungo 1.0.0.dmg.

It will try to code sign the DMG, but the DMG is still created and fine even if the code signing fails, for example if you don't have a developer certificate.


MIT © Sindre Sorhus