From 3c0c0b77ff9e6060b731bccf2b55beb03b02e3b5 Mon Sep 17 00:00:00 2001 From: "Alinson S. Xavier" Date: Sat, 22 Mar 2025 15:19:37 -0500 Subject: [PATCH] build.sh: Update emulator path --- build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 863e8681e..2759d89c0 100755 --- a/build.sh +++ b/build.sh @@ -21,7 +21,7 @@ ADB="${ANDROID_HOME}/platform-tools/adb" ANDROID_OUTPUTS_DIR="uhabits-android/build/outputs" AVDMANAGER="${ANDROID_HOME}/cmdline-tools/latest/bin/avdmanager" AVD_PREFIX="uhabitsTest" -EMULATOR="${ANDROID_HOME}/tools/emulator" +EMULATOR="${ANDROID_HOME}/emulator/emulator" GRADLE="./gradlew --stacktrace --quiet" PACKAGE_NAME=org.isoron.uhabits SDKMANAGER="${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager" @@ -38,6 +38,11 @@ if [ ! -f "${ANDROID_HOME}/platform-tools/adb" ]; then exit 1 fi +if [ ! -f "$EMULATOR" ]; then + echo "Error: Not found: $EMULATOR" + exit 1 +fi + # Logging # -----------------------------------------------------------------------------