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", "tsConfig": "src/tsconfig.app.json",
"assets": [ "assets": [
"src/assets", "src/assets",
"src/electron.js",
"src/manifest.json" "src/manifest.json"
], ],
"styles": [ "styles": [
@ -78,6 +79,7 @@
"scripts": [], "scripts": [],
"assets": [ "assets": [
"src/assets", "src/assets",
"src/electron.js",
"src/manifest.json" "src/manifest.json"
] ]
} }

View File

@ -5,11 +5,10 @@
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve --host 0.0.0.0", "start": "ng serve --host 0.0.0.0",
"build": "ng build --configuration=production", "build": "ng build --base-href=\"./\" --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-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-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-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", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e" "e2e": "ng e2e"

View File

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