From 24e80fb415d559ef3c46d7e26f4f726f99ce114c Mon Sep 17 00:00:00 2001 From: jflyper Date: Sat, 25 Nov 2017 21:53:28 +0900 Subject: [PATCH] Moved format and background inside specification. --- gulpfile.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 54ef2e17..a77acfff 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -314,16 +314,22 @@ function release_osx64() { return gulp.src([]) .pipe(appdmg({ target: path.join(releaseDir, get_release_filename('macOS', 'dmg')), - background: path.join(__dirname, 'images/dmg-background.png'), basepath: path.join(appsDir, pkg.name, 'osx64'), specification: { - 'title': 'Betaflight Configurator', - 'contents': [ + title: 'Betaflight Configurator', + contents: [ { 'x': 448, 'y': 342, 'type': 'link', 'path': '/Applications' }, { 'x': 192, 'y': 344, 'type': 'file', 'path': pkg.name + '.app', 'name': 'Betaflight Configurator.app' } - ] + ], + background: path.join(__dirname, 'images/dmg-background.png'), + format: 'UDZO', + window: { + size: { + width: 638, + height: 479 + } + } }, - format: 'UDB0' }) ); }