Skip to content

Commit 2e610aa

Browse files
authored
Merge pull request #745 from jflyper/Compress-osx-dmg-with-UDB0
OSX: Compress DMG
2 parents 1be9280 + 24e80fb commit 2e610aa

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

gulpfile.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,15 +314,22 @@ function release_osx64() {
314314
return gulp.src([])
315315
.pipe(appdmg({
316316
target: path.join(releaseDir, get_release_filename('macOS', 'dmg')),
317-
background: path.join(__dirname, 'images/dmg-background.png'),
318317
basepath: path.join(appsDir, pkg.name, 'osx64'),
319318
specification: {
320-
'title': 'Betaflight Configurator',
321-
'contents': [
319+
title: 'Betaflight Configurator',
320+
contents: [
322321
{ 'x': 448, 'y': 342, 'type': 'link', 'path': '/Applications' },
323322
{ 'x': 192, 'y': 344, 'type': 'file', 'path': pkg.name + '.app', 'name': 'Betaflight Configurator.app' }
324-
]
325-
}
323+
],
324+
background: path.join(__dirname, 'images/dmg-background.png'),
325+
format: 'UDZO',
326+
window: {
327+
size: {
328+
width: 638,
329+
height: 479
330+
}
331+
}
332+
},
326333
})
327334
);
328335
}

0 commit comments

Comments
 (0)