Skip to content

Commit 0ce70b0

Browse files
authored
Merge pull request #78 from Lazza/master
Add support for building a single executable for Windows
2 parents 93c6949 + b16cf73 commit 0ce70b0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

electron-builder.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"directories": {
3+
"app": "dist",
4+
"output": "app-builds"
5+
},
6+
"win": {
7+
"icon": "dist/favicon",
8+
"target": ["portable"]
9+
}
10+
}

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"electron:prod": "npm run build:prod && electron ./dist",
3232
"electron:linux": "npm run build:prod && node package.js --asar --platform=linux --arch=x64",
3333
"electron:windows": "npm run build:prod && node package.js --asar --platform=win32 --arch=ia32",
34+
"electron:winportable": "npm run build:prod && npx electron-builder build --windows",
3435
"electron:mac": "npm run build:prod && node package.js --asar --platform=darwin --arch=x64",
3536
"test": "karma start ./karma.conf.js",
3637
"pree2e": "webdriver-manager update --standalone false --gecko false --quiet && npm run build",
@@ -63,6 +64,7 @@
6364
"css-loader": "0.28.7",
6465
"cssnano": "3.10.0",
6566
"electron": "1.7.8",
67+
"electron-builder": "19.45.4",
6668
"electron-packager": "9.1.0",
6769
"electron-reload": "1.2.1",
6870
"exports-loader": "0.6.4",

0 commit comments

Comments
 (0)