From 7975f02a367f7e5d77053c84618cbe00afef411d Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Fri, 5 Nov 2021 06:43:55 -0700 Subject: [PATCH] Check for qmake and make in build.sh --- build.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/build.sh b/build.sh index 8938b8a..cf63aa3 100755 --- a/build.sh +++ b/build.sh @@ -20,12 +20,25 @@ then echo "rustc could not be found. Please install it and try again." exit 1 fi + if ! command -v cargo &> /dev/null then echo "cargo could not be found. Please install it and try again." exit 1 fi +if ! command -v qmake &> /dev/null +then + echo "qmake could not be found. Please install QT and try again." + exit 1 +fi + +if ! command -v make &> /dev/null +then + echo "make could not be found. Please install it and try again." + exit 1 +fi + VERSION=$(cat src/version.h |cut -d\" -f2) echo "Compiling SilentDragonLite $VERSION with $JOBS threads..." CONF=silentdragon-lite.pro