diff --git a/build_win.bat b/build_win.bat new file mode 100644 index 0000000..de6d805 --- /dev/null +++ b/build_win.bat @@ -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 \ No newline at end of file diff --git a/package.json b/package.json index 66b28dd..23f88c0 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "main.js", "scripts": { "start": "electron .", - "postinstall": "electron-builder install-app-deps", + "postinstall": "electron-builder", "pack": "build --dir", "dist": "build" },