Debian package builder

This commit is contained in:
advplyr 2021-09-24 19:37:35 -05:00
parent 4de3ffac63
commit 0d33ed98d9
7 changed files with 143 additions and 4 deletions

View file

@ -1,7 +1,7 @@
{
"name": "audiobookshelf",
"version": "1.2.1",
"description": "Self-hosted audiobook server for managing and playing audiobooks.",
"description": "Self-hosted audiobook server for managing and playing audiobooks",
"main": "index.js",
"scripts": {
"dev": "node index.js",
@ -9,12 +9,12 @@
"client": "cd client && npm install && npm run generate-client",
"generate-client": "cd client && npm run generate",
"prod": "npm run client && npm install && node prod.js",
"build-client": "cd client && rm -rf node_modules && npm i --unsafe-perm=true --allow-root && npm run generate",
"build-server": "rm -rf node_modules && npm i --unsafe-perm=true --allow-root && npm i ffmpeg-static --unsafe-perm=true --allow-root",
"build-client": "cd client && rm -rf node_modules && npm ci --unsafe-perm=true --allow-root && npm run generate",
"build-server": "rm -rf node_modules && npm ci --unsafe-perm=true --allow-root && npm i ffmpeg-static --unsafe-perm=true --allow-root",
"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 ."
"build-linux": "npm run build-prep && pkg -t node12-linux-x64 -o dist/linux/audiobookshelf . && cp dist/linux/audiobookshelf build/debian/usr/share/"
},
"bin": "prod.js",
"pkg": {