release/script.js
'use strict';
var packager = require('electron-packager');
var options = {
"dir" : ".",
"name" : "markdown-notes",
"platform" : ["linux", "win32"],
"version" : "1.4.1",
"out" : "/home/abijeet/Projects/markdown-notes/releases/",
"icon" : "/home/abijeet/Pictures/markdown-notes.ico",
"app-version" : "0.4.0",
"arch" : "x64",
"ignore" : ["settings.json", "release", "Gruntfile.js", ".bowerrc",
"node_modules/grunt", "node_modules/grunt-jsbeautifier", ".jshintrc"],
"version-string": {
"CompanyName": "Markdown notes",
"ProductName": "Markdown notes"
}
};
console.log('Packaging app with following settings --\n\n');
console.log(options);
packager(options, function done (err, appPath) {
if(err) {
console.log('There was an error while packaging the app.');
console.log('---------------------------------------\n\n');
console.log(JSON.stringify(err, null, 2));
} else {
console.log(appPath);
console.log('App packaged successfully!');
}
});