message: Skip building android on windows if existing apk is found
  * This allows sharing the android build from linux where the result should be
  equivalent (if not identical) and runs a fair bit quicker.
diff: @@ -99,6 +99,18 @@ if uname -a | grep -iq msys; then
  GENERATOR="MSYS Makefiles"
  fi
  +AAPT=$(ls $ANDROID_SDK/build-tools/*/aapt.exe | tail -n 1)
  +
  +# Check to see if we already have this built, and don't rebuild
  +VERSION32=$($AAPT dump badging build-android-arm32/bin/*apk 2>/dev/null | grep -Eo "versionName='[0-9a-f]*'" | grep -Eo "'.*'" | tr -d "'")
  +VERSION64=$($AAPT dump badging build-android-arm64/bin/*apk 2>/dev/null | grep -Eo "versionName='[0-9a-f]*'" | grep -Eo "'.*'" | tr -d "'")
  +
  +if [ "$VERSION32" == "$GITTAG" ]; then
  +
  + echo "Found existing compatible arm32 build at $GITTAG, not rebuilding";
  +
  +else
  +
  # Build the arm32 variant
  mkdir -p build-android-arm32
  pushd build-android-arm32
  @@ -114,6 +126,14 @@ fi
  popd # build-android-arm32
  +fi
  +
  +if [ "$VERSION64" == "$GITTAG" ]; then
  +
  + echo "Found existing compatible arm64 build at $GITTAG, not rebuilding";
  +
  +else
  +
  mkdir -p build-android-arm64
  pushd build-android-arm64
  @@ -128,5 +148,7 @@ fi
  popd # build-android-arm64
  +fi
  +
  popd # $REPO_ROOT
  