Create a good-looking DMG for your macOS app in seconds
JavaScript
Switch branches/tags
Latest commit 4933b33 Mar 31, 2017 @sindresorhus committed on GitHub Expand readme description
Permalink
Failed to load latest commit information.
assets Init Mar 27, 2017
fixture.app/Contents Init Mar 27, 2017
stuff Init Mar 27, 2017
.editorconfig Init Mar 27, 2017
.gitattributes Init Mar 27, 2017
.gitignore Init Mar 27, 2017
.travis.yml Init Mar 27, 2017
cli.js Improve error message for when the file doesn't exist Mar 31, 2017
license Init Mar 27, 2017
package.json 1.3.0 Mar 31, 2017
readme.md Expand readme description Mar 31, 2017
screenshot-cli.gif Improve description and CLI screenshot Mar 31, 2017
screenshot-dmg.png Init Mar 27, 2017
test.js Correctly silence code signing failure in the tests Mar 31, 2017

readme.md

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.

Install

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

$ npm install --global create-dmg

Usage

$ create-dmg --help

  Usage
    $ create-dmg <app>

  Example
    $ create-dmg 'Lungo.app'

DMG

The DMG requires macOS 10.11 or later and has the filename appName-appVersion.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.

License

MIT © Sindre Sorhus