Skip to content

Commit 3c0c0b7

Browse files
committed
build.sh: Update emulator path
1 parent 66fa56e commit 3c0c0b7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ADB="${ANDROID_HOME}/platform-tools/adb"
2121
ANDROID_OUTPUTS_DIR="uhabits-android/build/outputs"
2222
AVDMANAGER="${ANDROID_HOME}/cmdline-tools/latest/bin/avdmanager"
2323
AVD_PREFIX="uhabitsTest"
24-
EMULATOR="${ANDROID_HOME}/tools/emulator"
24+
EMULATOR="${ANDROID_HOME}/emulator/emulator"
2525
GRADLE="./gradlew --stacktrace --quiet"
2626
PACKAGE_NAME=org.isoron.uhabits
2727
SDKMANAGER="${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager"
@@ -38,6 +38,11 @@ if [ ! -f "${ANDROID_HOME}/platform-tools/adb" ]; then
3838
exit 1
3939
fi
4040

41+
if [ ! -f "$EMULATOR" ]; then
42+
echo "Error: Not found: $EMULATOR"
43+
exit 1
44+
fi
45+
4146
# Logging
4247
# -----------------------------------------------------------------------------
4348

0 commit comments

Comments
 (0)