diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build-unix.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/build-unix.sh b/scripts/build-unix.sh index 4cefae0be..093a0ec02 100755 --- a/scripts/build-unix.sh +++ b/scripts/build-unix.sh | |||
@@ -32,7 +32,6 @@ command_exists() { | |||
32 | # Checking the developer environment | 32 | # Checking the developer environment |
33 | # Check for installed programmes | 33 | # Check for installed programmes |
34 | command_exists node || fail_with_docs "Node is not installed" | 34 | command_exists node || fail_with_docs "Node is not installed" |
35 | command_exists jq || fail_with_docs "jq is not installed" | ||
36 | command_exists python || fail_with_docs "python is not installed" | 35 | command_exists python || fail_with_docs "python is not installed" |
37 | 36 | ||
38 | # Check node version | 37 | # Check node version |
@@ -149,7 +148,7 @@ $BASE_CMD run build -- --$TARGET_ARCH --$TARGET_OS --dir | |||
149 | printf "\n*************** App successfully built! ***************\n" | 148 | printf "\n*************** App successfully built! ***************\n" |
150 | 149 | ||
151 | # Final check to ensure that the version built is the same as the latest commit | 150 | # Final check to ensure that the version built is the same as the latest commit |
152 | VERSION_BUILT_HASH=$(jq --raw-output .gitHashShort ./build/buildInfo.json) | 151 | VERSION_BUILT_HASH=$(node -p 'require("./build/buildInfo.json").gitHashShort') |
153 | GIT_BUILT_HASH=$(git rev-parse --short HEAD) | 152 | GIT_BUILT_HASH=$(git rev-parse --short HEAD) |
154 | if [[ $GIT_BUILT_HASH != $VERSION_BUILT_HASH ]]; then | 153 | if [[ $GIT_BUILT_HASH != $VERSION_BUILT_HASH ]]; then |
155 | echo "The built version is not on the latest commit | 154 | echo "The built version is not on the latest commit |