Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit cee734e

Browse files
author
Git²
committed
Working build scripts for Windows
1 parent 92776ce commit cee734e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@
1818
"preinstall-windows": "npm install --global --production windows-build-tools && npm install --global node-gyp && setx PYTHON \"%USERPROFILE%\\.windows-build-tools\\python27\\python.exe\"",
1919
"install-windows": "npm install && cd src && npm install && ..\\node_modules\\.bin\\electron-rebuild -f -w node-pty && cd ..",
2020
"prebuild": "mkdir prebuild-src && cp -R src/* prebuild-src/ && node prebuild-minify.js && cd prebuild-src && npm install",
21-
"build": "./node_modules/.bin/electron-builder build -wl -p never",
22-
"postbuild": "rm -R prebuild-src"
21+
"prebuild-windows": "mkdir prebuild-src && xcopy src\\* prebuild-src\\ /E /C /Q /Y && node prebuild-minify.js && cd prebuild-src && npm install",
22+
"build": "./node_modules/.bin/electron-builder build -l -p never",
23+
"build-windows": "node_modules\\.bin\\electron-builder -w -p never",
24+
"postbuild": "rm -R prebuild-src",
25+
"postbuild-windows": "rmdir /S /Q prebuild-src"
2326
},
2427
"repository": {
2528
"type": "git",

0 commit comments

Comments
 (0)