Skip to content

Commit 9aea5c1

Browse files
committed
Add architecture to PLATFORM on macOS
1 parent a8bbd56 commit 9aea5c1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎scripts/set-env.sh‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ test -f version.properties || { echo -e "${STYLE_ERROR}You must call this script
1111
PLATFORM="$(uname -s)"
1212
case "${PLATFORM}" in
1313
Darwin*)
14-
PLATFORM=mac
14+
if [ "$(uname -m)" = arm64 ]; then
15+
PLATFORM=mac_arm64
16+
else
17+
PLATFORM=mac_x86_64
18+
fi
1519
BUILD_PLATFORM=darwin-x86_64
1620
CPU_COUNT=$(sysctl -n hw.logicalcpu_max)
1721
DEFAULT_ANDROID_SDK_ROOT=~/Library/Android/sdk

0 commit comments

Comments
 (0)