MCPcopy
hub / github.com/sindresorhus/create-dmg

github.com/sindresorhus/create-dmg @v8.1.0 sqlite

repository ↗ · DeepWiki ↗ · release v8.1.0 ↗
11 symbols 52 edges 4 files 0 documented · 0%
README

create-dmg

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.

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

Install

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

npm install --global create-dmg

Usage

$ create-dmg --help

  Usage
    $ create-dmg <app> [destination]

  Options
    --overwrite                  Overwrite existing DMG with the same name
    --no-version-in-filename     Exclude version number from DMG filename
    --identity=<value>           Manually set code signing identity (automatic by default)
    --dmg-title=<value>          Manually set DMG title (must be <=27 characters) [default: App name]
    --no-code-sign               Skip code signing the DMG

  Examples
    $ create-dmg 'Lungo.app'
    $ create-dmg 'Lungo.app' Build/Releases

DMG

The DMG requires macOS 10.13 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. You can use the --no-code-sign flag to skip code signing entirely and prevent exit code failures in CI environments.

Important: Don't forget to notarize your DMG.

Software license agreement

If either license.txt or license.rtf is present in the current working directory, it will be added as a software license agreement when opening the image. The image will not be mounted unless the user indicates agreement with the license.

Icon example

Original icon → DMG icon

Related

Core symbols most depended-on inside this repo

getDmgPath
called by 9
test.js
runCreateDmg
called by 7
test.js
createResource
called by 5
sla.js
parseImageTypes
called by 2
compose-icon.js
composeIconVariant
called by 2
compose-icon.js
assertVolumeIconMatchesSnapshot
called by 2
test.js
isComposeIconUnavailable
called by 1
compose-icon.js
composeIcon
called by 1
compose-icon.js

Shape

Function 11

Languages

TypeScript100%

Modules by API surface

compose-icon.js4 symbols
test.js3 symbols
sla.js3 symbols
cli.js1 symbols

Dependencies from manifests, versioned

appdmg0.6.6 · 1×
ava6.4.1 · 1×
execa9.6.1 · 1×
icns-lib1.0.1 · 1×
meow14.0.0 · 1×
ora9.1.0 · 1×
plist3.1.0 · 1×
tempy3.1.1 · 1×
xo1.2.3 · 1×

For agents

$ claude mcp add create-dmg \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact