From d123abd4cdaf1b000fd29095c5b70966bd77412d Mon Sep 17 00:00:00 2001 From: Mark Cooper Date: Sat, 25 Sep 2021 16:34:36 -0500 Subject: [PATCH] Linuxpackager to use /dist directory --- build/linuxpackager | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/build/linuxpackager b/build/linuxpackager index e8ab2b46..9108bfe1 100644 --- a/build/linuxpackager +++ b/build/linuxpackager @@ -28,11 +28,14 @@ npm ci --unsafe-perm=true --allow-root echo ">>> Packaging" echo "--------------------" -pkg -t node12-linux-x64 -o build/debian/usr/share/audiobookshelf/audiobookshelf . +mkdir -p dist +cp -R build/debian dist/debian -fakeroot dpkg-deb --build build/debian +pkg -t node12-linux-x64 -o dist/debian/usr/share/audiobookshelf/audiobookshelf . -mv build/debian.deb "build/$OUTPUT_FILE" -chmod +x "build/$OUTPUT_FILE" +fakeroot dpkg-deb --build dist/debian + +mv dist/debian.deb "dist/$OUTPUT_FILE" +chmod +x "dist/$OUTPUT_FILE" echo "Finished! Filename: $OUTPUT_FILE"