Skip to content

Commit

Permalink
fixes for NW.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DzikuVx committed Dec 21, 2017
1 parent 513659b commit 1566026
Show file tree
Hide file tree
Showing 3 changed files with 140 additions and 743 deletions.
36 changes: 13 additions & 23 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,29 +356,19 @@ function release_chromeos() {

// Create distribution package for macOS platform
function release_osx64() {
var appdmg = require('gulp-appdmg');

return gulp.src([])
.pipe(appdmg({
target: path.join(releaseDir, get_release_filename('macOS', 'dmg')),
basepath: path.join(appsDir, pkg.name, 'osx64'),
specification: {
title: 'BF Blackbox Explorer', // <= volume name; should be smaller than 27 chars.
contents: [
{ 'x': 448, 'y': 342, 'type': 'link', 'path': '/Applications' },
{ 'x': 192, 'y': 344, 'type': 'file', 'path': pkg.name + '.app', 'name': 'Betaflight Blackbox Explorer.app' }
],
background: path.join(__dirname, 'images/dmg-background.png'),
format: 'UDZO',
window: {
size: {
width: 638,
height: 479
}
}
},
})
);
var pkg = require('./package.json');
var src = path.join(appsDir, pkg.name, 'osx64', pkg.name + '.app');
// Check if we want to sign the .app bundle

var output = fs.createWriteStream(path.join(appsDir, get_release_filename('macOS', 'zip')));
var archive = archiver('zip', {
zlib: { level: 9 }
});
archive.on('warning', function(err) { throw err; });
archive.on('error', function(err) { throw err; });
archive.pipe(output);
archive.directory(src, 'INAV Configurator.app');
return archive.finalize();
}

// Create distributable .zip files in ./release
Expand Down
Loading

0 comments on commit 1566026

Please sign in to comment.