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
build: Increase error strictness
Elian Dorandd14ba9e0e91
diff --git a/bin/build-debian.sh b/bin/build-debian.shindex d973d2f365..ecf88f3592 100755--- a/bin/build-debian.sh+++ b/bin/build-debian.sh@@ -1,5 +1,7 @@#!/usr/bin/env bash+set -e # Fail on any command error+if ! command -v dpkg-deb &> /dev/null; thenecho "Missing command: dpkg-deb"exit 1diff --git a/bin/build-docker.sh b/bin/build-docker.shindex 2b37946777..9d614eb2b8 100755--- a/bin/build-docker.sh+++ b/bin/build-docker.sh@@ -1,5 +1,7 @@#!/usr/bin/env bash+set -e # Fail on any command error+VERSION=`jq -r ".version" package.json`SERIES=${VERSION:0:4}-latestdiff --git a/bin/build-linux-x64.sh b/bin/build-linux-x64.shindex 7b7b91a8ad..86d4f97f7a 100755--- a/bin/build-linux-x64.sh+++ b/bin/build-linux-x64.sh@@ -1,5 +1,7 @@#!/usr/bin/env bash+set -e # Fail on any command error+if ! command -v jq &> /dev/null; thenecho "Missing command: jq"exit 1diff --git a/bin/build-mac-arm64.sh b/bin/build-mac-arm64.shindex 2194353448..d9736bca0a 100755--- a/bin/build-mac-arm64.sh+++ b/bin/build-mac-arm64.sh@@ -1,5 +1,7 @@#!/usr/bin/env bash+set -e # Fail on any command error+SRC_DIR=./dist/trilium-mac-arm64-srcif [ "$1" != "DONTCOPY" ]diff --git a/bin/build-mac-x64.sh b/bin/build-mac-x64.shindex ba05322ae6..c34fd6ad88 100755--- a/bin/build-mac-x64.sh+++ b/bin/build-mac-x64.sh@@ -1,5 +1,7 @@#!/usr/bin/env bash+set -e # Fail on any command error+SRC_DIR=./dist/trilium-mac-x64-srcif [ "$1" != "DONTCOPY" ]diff --git a/bin/build-server.sh b/bin/build-server.shindex 94a3650ef6..1be4161163 100755--- a/bin/build-server.sh+++ b/bin/build-server.sh@@ -1,5 +1,7 @@#!/usr/bin/env bash+set -e # Fail on any command error+PKG_DIR=dist/trilium-linux-x64-serverNODE_VERSION=20.15.1diff --git a/bin/build-win-x64.sh b/bin/build-win-x64.shindex f71296cd52..f40aaaef93 100755--- a/bin/build-win-x64.sh+++ b/bin/build-win-x64.sh@@ -1,5 +1,7 @@#!/usr/bin/env bash+set -e # Fail on any command error+if ! command -v wine &> /dev/null; thenecho "Missing command: wine"exit 1diff --git a/bin/build.sh b/bin/build.shindex 513bd11292..7fb41cfcb5 100755--- a/bin/build.sh+++ b/bin/build.sh@@ -1,5 +1,7 @@#!/usr/bin/env bash+set -e # Fail on any command error+if ! command -v jq &> /dev/null; thenecho "Missing command: jq"exit 1@@ -40,7 +42,6 @@ cp -r $SRC_DIR ./dist/trilium-windows-x64-srccp -r $SRC_DIR ./dist/trilium-mac-x64-srccp -r $SRC_DIR ./dist/trilium-mac-arm64-src-set -ebin/build-win-x64.sh DONTCOPYbin/build-mac-x64.sh DONTCOPY