Last active
March 12, 2020 07:24
-
-
Save ErikDeBruijn/7d900d42b3731ec8e0c1b4722c03d218 to your computer and use it in GitHub Desktop.
HOWTO Install an .aab file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "This utility will install an app based on an .aab to your Android device" | |
echo "Plug in your Android device and enable dev mode USB debugging." | |
ls /usr/local/Cellar/bundletool/*/bin/bundletool 1>/dev/null || brew install bundletool | |
bt=$(ls /usr/local/Cellar/bundletool/*/bin/bundletool |head -n1) | |
mkdir /tmp/apks | |
cd /tmp/apks | |
$bt build-apks --bundle $1 --output build.apks | |
echo "Waiting for your device to be connected and authorized..." | |
adb wait-for-usb-any && \ | |
$bt install-apks --apks build.apks --adb /Users/erik/Library/Android/sdk/platform-tools/adb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment