From 5e15695f64902f135e3c68b7c2e17bdf8da40bbb Mon Sep 17 00:00:00 2001 From: Mark Cooper Date: Fri, 24 Sep 2021 17:21:47 -0500 Subject: [PATCH] Build scripts --- package.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 21775ec2..ecd41c6a 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,12 @@ "client": "cd client && npm install && npm run generate", "prod": "npm run client && npm install && node prod.js", "generate": "cd client && npm run generate", - "build-win": "pkg -t node12-win-x64 -o ./dist/win/audiobookshelf .", - "build-linuxarm": "pkg -t node12-linux-arm64 -o ./dist/linuxarm/audiobookshelf .", - "build-linuxamd": "pkg -t node12-linux-amd64 -o ./dist/linuxamd/audiobookshelf ." + "build-client": "cd client && rm -rf node_modules && npm i && npm run generate", + "build-server": "rm -rf node_modules && npm i && npm i ffmpeg-static", + "build-prep": "npm run build-client && npm run build-server", + "build-win": "npm run build-prep && pkg -t node12-win-x64 -o ./dist/win/audiobookshelf .", + "build-linuxarm": "npm run build-prep && pkg -t node12-linux-arm64 -o ./dist/linuxarm/audiobookshelf .", + "build-linux": "npm run build-prep && pkg -t node12-linux-x64 -o ./dist/linux/audiobookshelf ." }, "bin": "prod.js", "pkg": {