Pkg scripts win/linux

This commit is contained in:
advplyr 2021-09-22 20:40:35 -05:00
parent b23f9362ef
commit 31e109d0f0
12 changed files with 235 additions and 34 deletions

View file

@ -7,7 +7,17 @@
"dev": "node index.js",
"start": "node index.js",
"client": "cd client && npm install && npm run generate",
"prod": "npm run client && npm install && node prod.js"
"prod": "npm run client && npm install && node prod.js",
"build-win": "cd client && npm run generate && cd .. && pkg -t node12-win-x64 -o ./dist/app .",
"build-linux": "pkg -t node12-linux-arm64 -o ./dist/app ."
},
"bin": "prod.js",
"pkg": {
"assets": "client/dist/**/*",
"scripts": [
"prod.js",
"server/**/*.js"
]
},
"author": "advplyr",
"license": "ISC",