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