mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-12-04 14:06:28 +01:00
Package the React client in the Debian build
This commit is contained in:
1 parent
faa2a91266
commit
ce25867efd
4 files changed
+24
-10
No files matched your search
+7
-10
@@ -11,15 +11,6 @@ VERSION="$( eval echo $( jq '.version' package.json) )"
|
||||
DESCRIPTION="$( eval echo $( jq '.description' package.json) )"
|
||||
OUTPUT_FILE="audiobookshelf_${VERSION}_amd64.deb"
|
||||
|
||||
echo ">>> Building Client"
|
||||
echo "--------------------"
|
||||
|
||||
cd client
|
||||
rm -rf node_modules
|
||||
npm ci
|
||||
npm run generate
|
||||
cd ..
|
||||
|
||||
echo ">>> Building Server"
|
||||
echo "--------------------"
|
||||
|
||||
@@ -47,11 +38,17 @@ Description: $DESCRIPTION"
|
||||
|
||||
echo "$controlfile" > dist/debian/DEBIAN/control;
|
||||
|
||||
echo ">>> Fetching React client runtime"
|
||||
echo "--------------------"
|
||||
|
||||
mkdir -p dist/debian/usr/share/audiobookshelf
|
||||
node scripts/fetch-client-react-runtime.js --out dist/debian/usr/share/audiobookshelf/client-react
|
||||
|
||||
# Package contents: directories 0755, files 0644 (including the systemd unit).
|
||||
# Maintainer scripts must stay executable so dpkg can run them.
|
||||
find dist/debian -type d -exec chmod 755 {} +
|
||||
find dist/debian -type f -exec chmod 644 {} +
|
||||
chmod 755 dist/debian/DEBIAN/preinst dist/debian/DEBIAN/postinst dist/debian/DEBIAN/prerm
|
||||
chmod 755 dist/debian/DEBIAN/preinst dist/debian/DEBIAN/postinst dist/debian/DEBIAN/prerm dist/debian/DEBIAN/postrm
|
||||
|
||||
# Package debian
|
||||
pkg --config package.json -t node24-linux-x64 -o dist/debian/usr/share/audiobookshelf/audiobookshelf dist-server/index.js
|
||||
|
||||
Reference in new issue
Block a user