Skip to content

Instantly share code, notes, and snippets.

@lekaha
Created July 1, 2020 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lekaha/375430f745c1b491493d0e17d45bdc04 to your computer and use it in GitHub Desktop.
Save lekaha/375430f745c1b491493d0e17d45bdc04 to your computer and use it in GitHub Desktop.
Install .aab file
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