feat/ Add electron-packager scripts

This commit is contained in:
Maxime GRIS
2017-04-03 12:03:56 +02:00
parent 9a983c1a1a
commit 57891dc9f4
5 changed files with 29 additions and 5394 deletions

View File

@@ -20,11 +20,12 @@ function createWindow() {
height: size.height
});
let url = 'http://localhost:4200';
let Args = process.argv.slice(2);
let url = 'file://' + __dirname + '/index.html';
let Args = process.argv.slice(1);
Args.forEach(function (val) {
if (val === "dist") {
url = 'file://' + __dirname + '/dist/index.html'
if (val === "--serve") {
url = 'http://localhost:4200'
}
});