Skip to content

Instantly share code, notes, and snippets.

@vbashiri
Created July 9, 2023 12:46
Show Gist options
  • Save vbashiri/d0faf07421d98b2f40632022270e3f62 to your computer and use it in GitHub Desktop.
Save vbashiri/d0faf07421d98b2f40632022270e3f62 to your computer and use it in GitHub Desktop.
Build Apks file from Android App Bundle and install it
#!/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