bin/build*: Check if dpkg-deb tool is correct

This commit is contained in:
Elian Doran 2024-07-14 21:45:48 +03:00
parent 6bf063b92f
commit c9f27547a2
No known key found for this signature in database
3 changed files with 15 additions and 0 deletions

View File

@ -5,6 +5,11 @@ if ! command -v dpkg-deb &> /dev/null; then
exit 1
fi
if dpkg-deb 2>&1 | grep BusyBox &> /dev/null; then
echo "The dpkg-deb binary provided by BusyBox is not compatible. The Debian tool needs to be used instead."
exit 1
fi
echo "Packaging debian x64 distribution..."
VERSION=`jq -r ".version" package.json`

View File

@ -15,6 +15,11 @@ if ! command -v dpkg-deb &> /dev/null; then
exit 1
fi
if dpkg-deb 2>&1 | grep BusyBox &> /dev/null; then
echo "The dpkg-deb binary provided by BusyBox is not compatible. The Debian tool needs to be used instead."
exit 1
fi
SRC_DIR=./dist/trilium-linux-x64-src
[ "$1" != "DONTCOPY" ] && ./bin/copy-trilium.sh "$SRC_DIR"

View File

@ -17,6 +17,11 @@ if ! command -v dpkg-deb &> /dev/null; then
exit 1
fi
if dpkg-deb 2>&1 | grep BusyBox &> /dev/null; then
echo "The dpkg-deb binary provided by BusyBox is not compatible. The Debian tool needs to be used instead."
exit 1
fi
if ! command -v wine &> /dev/null; then
echo "Missing command: wine"
exit 1