Interface: DmgOptions
Extends
Properties
artifactName?
readonlyoptionalartifactName?:string|null
The artifact file name template.
Inherited from
TargetSpecificOptions.artifactName
background?
optionalbackground?:string|null
The path to background image (default: build/background.tiff or build/background.png if exists). The resolution of this file determines the resolution of the installer window.
If background is not specified, use window.size. Default locations expected background size to be 540x380.
See
DMG with Retina background support.
backgroundColor?
optionalbackgroundColor?:string|null
The background color (accepts css colors). Used when no background image is set.
Default
#ffffff
badgeIcon?
optionalbadgeIcon?:string|null
The path to DMG icon (badge icon), which will be shown when mounted, relative to the build resources or to the project directory.
contents?
optionalcontents?:DmgContent[]
The content — to customize icon locations. The x and y coordinates refer to the position of the center of the icon (at 1x scale), and do not take the label into account.
format?
optionalformat?:"UDRW"|"UDRO"|"UDCO"|"UDZO"|"UDBZ"|"ULFO"
The disk image format. ULFO (lzfse-compressed image (OS X 10.11+ only)).
Default
UDZO
icon?
optionalicon?:string|null
The path to DMG icon (volume icon), which will be shown when mounted, relative to the build resources or to the project directory.
Defaults to the application icon (build/icon.icns).
iconSize?
readonlyoptionaliconSize?:number|null
The size of all the icons inside the DMG.
Default
80
iconTextSize?
readonlyoptionaliconTextSize?:number|null
The size of all the icon texts inside the DMG.
Default
12
internetEnabled?
readonlyoptionalinternetEnabled?:boolean
Whether to create internet-enabled disk image (when it is downloaded using a browser it will automatically decompress the image, put the application on the desktop, unmount and remove the disk image file).
Default
false
publish?
optionalpublish?:Publish
Inherited from
shrink?
readonlyoptionalshrink?:boolean
Whether to shrink the DMG filesystem to the minimum size after copying files.
Set to false to preserve the explicit size you specified.
Default
true
sign?
readonlyoptionalsign?:boolean
Whether to sign the DMG or not. Signing is not required and will lead to unwanted errors in combination with notarization requirements.
Default
false
size?
readonlyoptionalsize?:string|null
The initial size of the DMG filesystem. Accepts the same syntax as the -size argument to hdiutil, e.g. "150m", "4g".
If not specified, the size is calculated automatically.
Set this explicitly for large apps or apps with sparse files to avoid "No space left on device" errors.
title?
readonlyoptionaltitle?:string|null
The title of the produced DMG, which will be shown when mounted (volume name).
Macro ${productName}, ${version} and ${name} are supported.
Default
${productName} ${version}
window?
optionalwindow?:DmgWindow
The DMG window position and size. With y co-ordinates running from bottom to top.
The Finder makes sure that the window will be on the user’s display, so if you want your window at the top left of the display you could use "x": 0, "y": 100000 as the x, y co-ordinates.
It is not to be possible to position the window relative to the top left or relative to the center of the user’s screen.