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 that required binaries are present
Elian Doran6bf063b92ff4
diff --git a/bin/build-debian.sh b/bin/build-debian.shindex 7f246ade37..03918fc0f5 100755--- a/bin/build-debian.sh+++ b/bin/build-debian.sh@@ -1,5 +1,10 @@#!/usr/bin/env bash+if ! command -v dpkg-deb &> /dev/null; then+ echo "Missing command: dpkg-deb"+ 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 888720a19e..fd5b02dda5 100755--- a/bin/build-linux-x64.sh+++ b/bin/build-linux-x64.sh@@ -1,5 +1,20 @@#!/usr/bin/env bash+if ! command -v jq &> /dev/null; then+ echo "Missing command: jq"+ exit 1+fi++if ! command -v fakeroot &> /dev/null; then+ echo "Missing command: fakeroot"+ exit 1+fi++if ! command -v dpkg-deb &> /dev/null; then+ echo "Missing command: dpkg-deb"+ exit 1+fi+SRC_DIR=./dist/trilium-linux-x64-src[ "$1" != "DONTCOPY" ] && ./bin/copy-trilium.sh "$SRC_DIR"diff --git a/bin/build-win-x64.sh b/bin/build-win-x64.shindex 37bc281373..ad359ccb62 100755--- a/bin/build-win-x64.sh+++ b/bin/build-win-x64.sh@@ -1,5 +1,10 @@#!/usr/bin/env bash+if ! command -v wine &> /dev/null; then+ echo "Missing command: wine"+ exit 1+fi+SRC_DIR=./dist/trilium-windows-x64-srcif [ "$1" != "DONTCOPY" ]diff --git a/bin/build.sh b/bin/build.shindex 6092b20117..6a738f1a58 100755--- a/bin/build.sh+++ b/bin/build.sh@@ -1,5 +1,27 @@#!/usr/bin/env bash+set -e++if ! command -v jq &> /dev/null; then+ echo "Missing command: jq"+ exit 1+fi++if ! command -v fakeroot &> /dev/null; then+ echo "Missing command: fakeroot"+ exit 1+fi++if ! command -v dpkg-deb &> /dev/null; then+ echo "Missing command: dpkg-deb"+ exit 1+fi++if ! command -v wine &> /dev/null; then+ echo "Missing command: wine"+ exit 1+fi+echo "Deleting existing builds"rm -rf dist/*