You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+18-14Lines changed: 18 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,8 @@ Imagine you have finished a macOS app, exported it from Xcode, and now want to d
6
6
7
7
<imgsrc="screenshot-cli.gif"width="998">
8
8
9
-
Discuss it on [Product Hunt](https://www.producthunt.com/posts/create-dmg) and [Twitter](https://twitter.com/sindresorhus/status/846416556754010112).
10
-
11
9
*This tool is intentionally opinionated and simple. I'm not interested in adding lots of options.*
12
10
13
-
You might also find my [`LaunchAtLogin`](https://github.com/sindresorhus/LaunchAtLogin) project useful.
14
-
15
-
16
11
## Install
17
12
18
13
Ensure you have [Node.js](https://nodejs.org) 8 or later installed. Then run the following:
@@ -21,7 +16,6 @@ Ensure you have [Node.js](https://nodejs.org) 8 or later installed. Then run the
21
16
$ npm install --global create-dmg
22
17
```
23
18
24
-
25
19
## Usage
26
20
27
21
```
@@ -31,16 +25,15 @@ $ create-dmg --help
31
25
$ create-dmg <app> [destination]
32
26
33
27
Options
34
-
--overwrite Overwrite existing DMG with the same name
35
-
--identity=<value> Manually set code signing identity (automatic by default)
28
+
--overwrite Overwrite existing DMG with the same name
29
+
--identity=<value> Manually set code signing identity (automatic by default)
36
30
--dmg-title=<value> Manually set title of DMG volume (only used if app name is >27 character limit)
37
31
38
32
Examples
39
33
$ create-dmg 'Lungo.app'
40
34
$ create-dmg 'Lungo.app' Build/Releases
41
35
```
42
36
43
-
44
37
## DMG
45
38
46
39
The DMG detects the minimum runtime of the app, and uses ULFO (macOS 10.11 or later) or UDZO as appropriate. The resulting image has the filename `App Name 0.0.0.dmg`, for example `Lungo 1.0.0.dmg`.
@@ -49,13 +42,13 @@ It will try to code sign the DMG, but the DMG is still created and fine even if
49
42
50
43
<imgsrc="screenshot-dmg.png"width="772">
51
44
52
-
### Software license
45
+
### Software license agreement
53
46
54
-
If `license.txt`, `license.rtf`, or `sla.r` ([raw SLAResources file](https://download.developer.apple.com/Developer_Tools/software_licensing_for_udif/slas_for_udifs_1.0.dmg)) are present in the same folder as the app, they will be added as a software agreement when opening the image. The image will not be mounted unless the user indicates agreement with the license.
47
+
If either `license.txt`, `license.rtf`, or `sla.r` ([raw SLAResources file](https://download.developer.apple.com/Developer_Tools/software_licensing_for_udif/slas_for_udifs_1.0.dmg)) are present in the same directory as the app, it will be added as a software agreement when opening the image. The image will not be mounted unless the user indicates agreement with the license.
55
48
56
-
`/usr/bin/rez`[Command Line Tools for Xcode](https://developer.apple.com/download/more/) must be installed.
49
+
`/usr/bin/rez`(from [Command Line Tools for Xcode](https://developer.apple.com/download/more/)) must be installed.
57
50
58
-
### DMG Icon
51
+
### DMG icon
59
52
60
53
[GraphicsMagick](http://www.graphicsmagick.org) is required to create the custom DMG icon that's based on the app icon and the macOS mounted device icon.
61
54
@@ -65,8 +58,19 @@ If `license.txt`, `license.rtf`, or `sla.r` ([raw SLAResources file](https://dow
0 commit comments