Created
July 1, 2020 11:56
-
-
Save lekaha/375430f745c1b491493d0e17d45bdc04 to your computer and use it in GitHub Desktop.
Install .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
FILE=app.apks | |
if test -f "$FILE"; then | |
echo "Press enter to delete app.apks" | |
read wait | |
rm app.apks | |
fi | |
if [ -z "$1" ] | |
then | |
echo "No aab file path arguments supplied. Exit." | |
exit -1 | |
fi | |
echo "--------------------------------------------------" | |
echo "Press enter to build .apks file" | |
read wait | |
bundletool build-apks --bundle=$1 --output=app.apks --ks=keys/genieRelease.keystore --ks-key-alias=key0 --ks-pass=pass:geniemylife | |
if [[ -z "${ANDROID_HOME}" ]]; then | |
echo "Please set env ANDROID_HOME to your Android SDK root folder path" | |
exit -1 | |
fi | |
echo "--------------------------------------------------" | |
echo "Connect your phone to your computer and press enter to install .apks file on phone" | |
read wait | |
bundletool install-apks --apks=app.apks --adb=$ANDROID_HOME/platform-tools/adb --device-id=emulator-5554 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment