diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build_deps.sh | 5 | ||||
-rwxr-xr-x | scripts/prepareForDistribution.sh | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/scripts/build_deps.sh b/scripts/build_deps.sh index 0d37d7de..d1d42576 100755 --- a/scripts/build_deps.sh +++ b/scripts/build_deps.sh @@ -27,6 +27,9 @@ cd $BASE_DIR if [[ $(ls -A ${ANDROID_HOME}/ndk/${EXPECTED_NDK_VERSION}) ]] then ANDROID_NDK_HOME=${ANDROID_HOME}/ndk/${EXPECTED_NDK_VERSION} +elif [[ -f ${ANDROID_HOME/android-ndk-}${EXPECTED_ANDOID_NDK_RELEASE_VERSION }} ]]; then + echo "make sure you have the right ndk version installed and paths are set correctly" + exit 1 else # ndk was manually downloaded from http://dl.google.com/android/repository ANDROID_NDK_HOME=${ANDROID_HOME}/android-ndk-${EXPECTED_ANDROID_NDK_RELEASE_VERSION} @@ -98,4 +101,4 @@ else cp lib/bitmaskcore_x86_64.aar ../lib-bitmask-core-x86_64/. cp lib/bitmaskcore_x86_64-sources.jar ../lib-bitmask-core-x86_64/. cd .. -fi
\ No newline at end of file +fi diff --git a/scripts/prepareForDistribution.sh b/scripts/prepareForDistribution.sh index e6c0d42d..b89b73aa 100755 --- a/scripts/prepareForDistribution.sh +++ b/scripts/prepareForDistribution.sh @@ -409,7 +409,7 @@ if [[ ${DO_BUILD} == true ]]; then fi else # default: neither -aab nor -apk is passed: build apks - if ([[ -z ${BUILD_BUNDLE} ]] && [[-z ${BUILD_APK} ]]) || ([[ -n ${BUILD_APK} ]]); then + if ([[ -z ${BUILD_BUNDLE} ]] && [[ -z ${BUILD_APK} ]]) || ([[ -n ${BUILD_APK} ]]); then if [[ -z ${FLAVOR2} ]]; then echo -e "${GREEN} -> build stable releases (.apk) for flavor ${FLAVOR}${NC}" else |