Fixed standalones

This commit is contained in:
Zakary Timson 2019-03-24 19:06:32 -04:00
parent 949c7042fc
commit ae6c4f7d86
6 changed files with 8 additions and 13 deletions

View File

@ -20,6 +20,7 @@
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/assets",
"src/electron.js",
"src/manifest.json"
],
"styles": [
@ -78,6 +79,7 @@
"scripts": [],
"assets": [
"src/assets",
"src/electron.js",
"src/manifest.json"
]
}
@ -120,4 +122,4 @@
}
},
"defaultProject": "fhsons"
}
}

View File

@ -5,11 +5,10 @@
"scripts": {
"ng": "ng",
"start": "ng serve --host 0.0.0.0",
"build": "ng build --configuration=production",
"run-electron": "ng build --base-href=\"./\" && electron ./public/index.html",
"build-win": "electron-packager public/ FormulaManager --overwrite --asar --platform=win32 --arch=ia32 --icon=src/assets/icons/win/icon.ico --prune=true --out=src/assets/releases",
"build-mac": "electron-packager public/ FormulaManager --overwrite --asar --platform=darwin --arch=x64 --icon=src/assets/icons/mac/icon.icns --prune=true --out=src/assets/releases",
"build-linux": "electron-packager public/ FormulaManager --overwrite --asar --platform=linux --arch=x64 --icon=src/assets/icons/png/1024x1024.png --prune=true --out=src/assets/releases",
"build": "ng build --base-href=\"./\" --configuration=production",
"build-win": "electron-packager public/ FormulaManager --overwrite --asar --platform=win32 --arch=ia32 --icon=src/assets/icons/win/icon.ico --prune=true --out=src/assets/releases/",
"build-mac": "electron-packager public/ FormulaManager --overwrite --asar --platform=darwin --arch=x64 --icon=src/assets/icons/mac/icon.icns --prune=true --out=src/assets/releases/",
"build-linux": "electron-packager public/ FormulaManager --overwrite --asar --platform=linux --arch=x64 --icon=src/assets/icons/png/1024x1024.png --prune=true --out=src/assets/releases/",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"

View File

@ -14,13 +14,7 @@ function createWindow() {
});
Menu.setApplicationMenu(null);
// load the dist folder from Angular
win.loadURL('https://fhsons.zakscode.com/formulaManager');
// Open the DevTools optionally:
win.webContents.openDevTools();
win.loadFile('index.html');
win.on('closed', () => (win = null));
}