1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 21:05:30 +03:00

Merge pull request #745 from jflyper/Compress-osx-dmg-with-UDB0

OSX: Compress DMG
This commit is contained in:
Michael Keller 2017-11-26 02:01:42 +13:00 committed by GitHub
commit 2e610aa8ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -314,15 +314,22 @@ function release_osx64() {
return gulp.src([]) return gulp.src([])
.pipe(appdmg({ .pipe(appdmg({
target: path.join(releaseDir, get_release_filename('macOS', 'dmg')), target: path.join(releaseDir, get_release_filename('macOS', 'dmg')),
background: path.join(__dirname, 'images/dmg-background.png'),
basepath: path.join(appsDir, pkg.name, 'osx64'), basepath: path.join(appsDir, pkg.name, 'osx64'),
specification: { specification: {
'title': 'Betaflight Configurator', title: 'Betaflight Configurator',
'contents': [ contents: [
{ 'x': 448, 'y': 342, 'type': 'link', 'path': '/Applications' }, { 'x': 448, 'y': 342, 'type': 'link', 'path': '/Applications' },
{ 'x': 192, 'y': 344, 'type': 'file', 'path': pkg.name + '.app', 'name': 'Betaflight Configurator.app' } { '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
} }
}
},
}) })
); );
} }