Permalink
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (23 sloc) 645 Bytes
var packager = require('electron-packager');
var config = require('./package.json');
packager({
dir: './',
out: '../dist',
name: config.name,
platform: 'darwin',
arch: 'x64',
version: '1.8.4',
icon: './app.icns',
'app-bundle-id': 'net.hirohisa.jukeboks',
'app-version': config.version,
'helper-bundle-id': 'net.hirohisa.jukeboks.app',
overwrite: true,
asar: true,
prune: true,
ignore: "node_modules/(electron-packager|electron-prebuilt|\.bin)|release\.js|app\.icns|static"
}, function done (err, appPath) {
if(err) {
throw new Error(err);
}
console.log('done');
});