diff --git a/package.json b/package.json index 80dfad330..ceee53581 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,27 @@ "NSUserNotificationAlertStyle": "alert" } }, + "dmg": { + "background": "dmgBackground.png", + "icon": "icon.icns", + "iconSize": 155, + "window": { + "width": 660, + "height": 400 + }, + "contents": [ + { + "x": 123, + "y": 172 + }, + { + "x": 539, + "y": 168, + "type": "link", + "path": "/Applications" + } + ] + }, "win": { "publisherName": "Facebook, Inc.", "sign": null diff --git a/scripts/build-release.ts b/scripts/build-release.ts index f0113801a..fbbafbb6b 100755 --- a/scripts/build-release.ts +++ b/scripts/build-release.ts @@ -67,7 +67,7 @@ async function buildDist(buildFolder: string) { const postBuildCallbacks: (() => void)[] = []; if (process.argv.indexOf('--mac') > -1) { - targetsRaw.push(Platform.MAC.createTarget(['dir'])); + targetsRaw.push(Platform.MAC.createTarget(['dir', 'dmg'])); postBuildCallbacks.push(() => spawn('zip', ['-qyr9', '../Flipper-mac.zip', 'Flipper.app'], { cwd: path.join(__dirname, '..', 'dist', 'mac'), diff --git a/static/dmgBackground.png b/static/dmgBackground.png new file mode 100644 index 000000000..6ccc87505 Binary files /dev/null and b/static/dmgBackground.png differ