From 51158d86308004c8af4b811d5e1494c90d46cf05 Mon Sep 17 00:00:00 2001 From: Joel Whitney Date: Tue, 3 Aug 2021 18:04:53 -0400 Subject: [PATCH] processor --- release.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/release.sh b/release.sh index c86b339..e7659f9 100755 --- a/release.sh +++ b/release.sh @@ -143,6 +143,8 @@ function build() { FILE_NAME=docker/Emulator_x86 for v in "${versions[@]}"; do + level=${list_of_levels[$v]} + # Find image type and default web browser if [ "$v" == "5.0.1" ] || [ "$v" == "5.1.1" ]; then IMG_TYPE=default @@ -158,12 +160,12 @@ function build() { #adb root cannot be run in IMG_TYPE=google_apis_playstore IMG_TYPE=google_apis BROWSER=chrome - if [ "$v" == "9.0" ] || [ "$v" == "12.0" ]; then + # Google dropped 32-bit support at Android 12 + if [ "$v" == "9.0" ] || [ $level >= 31 ]; then processor=x86_64 fi fi echo "[BUILD] IMAGE TYPE: $IMG_TYPE" - level=${list_of_levels[$v]} echo "[BUILD] API Level: $level" sys_img=$processor echo "[BUILD] System Image: $sys_img"