Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
bin/build*: Check if dpkg-deb tool is correct
Elian Doranc9f27547a24d
diff --git a/bin/build-debian.sh b/bin/build-debian.shindex 03918fc0f5..d973d2f365 100755--- a/bin/build-debian.sh+++ b/bin/build-debian.sh@@ -5,6 +5,11 @@ if ! command -v dpkg-deb &> /dev/null; thenexit 1fi+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`diff --git a/bin/build-linux-x64.sh b/bin/build-linux-x64.shindex fd5b02dda5..e3e415355f 100755--- a/bin/build-linux-x64.sh+++ b/bin/build-linux-x64.sh@@ -15,6 +15,11 @@ if ! command -v dpkg-deb &> /dev/null; thenexit 1fi+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"diff --git a/bin/build.sh b/bin/build.shindex 6a738f1a58..3f416dddb0 100755--- a/bin/build.sh+++ b/bin/build.sh@@ -17,6 +17,11 @@ if ! command -v dpkg-deb &> /dev/null; thenexit 1fi+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; thenecho "Missing command: wine"exit 1