Created
July 9, 2023 12:46
-
-
Save vbashiri/d0faf07421d98b2f40632022270e3f62 to your computer and use it in GitHub Desktop.
Build Apks file from Android App Bundle and install it
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
#!/bin/sh | |
bundle_address=$1 //Bundle-tool address | |
keystore_address=$2 | |
keystore_alias=$3 | |
keystore_password=$4 | |
input_name=$5 | |
folder=$PWD | |
echo Start building apks... | |
java -jar ${bundle_address} build-apks --bundle=${folder}/${input_name}.aab --output=${folder}/${input_name}.apks --ks=${keystore_address} --ks-key-alias=${keystore_alias} --ks-pass=pass:${keystore_password} --mode=persistent --local-testing=true | |
echo Start installing apks... | |
java -jar ${bundle_address} install-apks --apks=${folder}/${input_name}.apks | |
echo Install Compeleted, Ishalla :7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment