Commit 5deb9d0f authored by dev0tion's avatar dev0tion

Prepare for electron-builder

parent c64ff23a
{
"appId": "com.stratisplatform.breeze",
"productName": "Breeze Wallet",
"mac": {
"category": "com.stratisplatform.breeze"
},
"directories": {
"app": "dist",
"output": "app-builds"
},
"win": {
"icon": "dist/assets/images/breeze-logo",
"target": ["nsis"],
"asarUnpack": "assets/daemon/*"
},
"nsis": {
"oneClick": false
},
"msi": {
"warningsAsErrors": false
}
}
......@@ -158,6 +158,7 @@ function startBitcoinApi() {
let apiPath = path.resolve(__dirname, 'assets//daemon//Stratis.BreezeD');
if (os.platform() === 'win32') {
apiPath = path.resolve(__dirname, 'assets\\daemon\\Stratis.BreezeD.exe');
//apiPath = path.resolve(__dirname, '..\\app.asar.unpacked\\assets\\daemon\\Stratis.BreezeD.exe');
}
if(!testnet) {
......@@ -184,6 +185,7 @@ function startStratisApi() {
let apiPath = path.resolve(__dirname, 'assets//daemon//Stratis.BreezeD');
if (os.platform() === 'win32') {
apiPath = path.resolve(__dirname, 'assets\\daemon\\Stratis.BreezeD.exe');
//apiPath = path.resolve(__dirname, '..\\app.asar.unpacked\\assets\\daemon\\Stratis.BreezeD.exe');
}
if (!testnet) {
......
......@@ -34,6 +34,7 @@
"electron:prod": "npm run build:prod && electron ./dist",
"package:linux": "npm run build:prod && node package.js --platform=linux --arch=x64",
"package:windows": "npm run build:prod && node package.js --platform=win32 --arch=ia32",
"package:winsetup": "npm run build:prod && npx electron-builder build --windows",
"package:mac": "npm run build:prod && node package.js --platform=darwin --arch=x64",
"test": "karma start ./karma.conf.js",
"pree2e": "webdriver-manager update --standalone false --gecko false --quiet && npm run build",
......@@ -64,6 +65,7 @@
"devDependencies": {
"@angular/cli": "1.5.3",
"@angular/compiler-cli": "5.0.2",
"@angular/language-service": "5.0.2",
"@types/core-js": "0.9.36",
"@types/jasmine": "2.6.0",
"@types/node": "7.0.7",
......@@ -76,6 +78,7 @@
"css-loader": "0.28.7",
"cssnano": "3.10.0",
"electron": "1.7.9",
"electron-builder": "19.45.5",
"electron-packager": "10.1.0",
"electron-reload": "1.2.2",
"exports-loader": "0.6.4",
......@@ -98,6 +101,7 @@
"minimist": "1.2.0",
"mkdirp": "0.5.1",
"npm-run-all": "4.1.2",
"npx": "9.7.1",
"node-sass": "4.7.2",
"postcss-loader": "2.0.8",
"postcss-url": "7.2.1",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment