Last active
April 2, 2019 08:36
-
-
Save vub/376c780752c5f8f3c021ffa415204b45 to your computer and use it in GitHub Desktop.
Angular electron build app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var electronInstaller = require('electron-winstaller'); | |
resultPromise = electronInstaller.createWindowsInstaller({ | |
appDirectory: './dist/build/Release/app-win32-ia32', | |
outputDirectory: './dist/', | |
exe: 'app.exe', | |
setupExe: 'app.exe', | |
noMsi: true, | |
authors: 'vubui', | |
description: 'App' | |
}); | |
resultPromise.then(() => console.log("It worked!"), (e) => console.log(`No dice: ${e.message}`)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"build:app:windows": "yarn run build:app && electron-packager . --platform=win32 --arch=ia32 --prune=true --out=dist/build/Release --overwrite --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName=\"MARS Desktop\"", | |
"build:app:windows:installer": "yarn run build:app:windows && node build-installer.js", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment