+ win build script

This commit is contained in:
Taegus
2018-12-18 20:10:31 +01:00
parent 0ec20aa2d8
commit aac2902a94
2 changed files with 10 additions and 1 deletions

9
build_win.bat Normal file
View File

@@ -0,0 +1,9 @@
@ECHO OFF
ECHO Clean the cache first
call npm cache clean --force
ECHO Prune the project for production
call npm prune --production
ECHO Install all dependencies
call npm install
ECHO Make a distribution
call npm run dist

View File

@@ -5,7 +5,7 @@
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
"start": "electron .", "start": "electron .",
"postinstall": "electron-builder install-app-deps", "postinstall": "electron-builder",
"pack": "build --dir", "pack": "build --dir",
"dist": "build" "dist": "build"
}, },