How do I install bundletool?
You can create an alias (or doskey on Windows), e.g.
alias bundletool='java -jar bundletool-all.jar'
Another alternative is access Bundletool release page and download the bundletool-all-[LAST-VERSION].jar file into some directory.
After that you could run it on the directory calling:
java -jar bundletool-all-0.10.2.jar your_arguments_here
If you want, rename the jar file to bundletool.jar, then run it calling:
java -jar bundletool.jar your_arguments_here
If you don't want call java
every time, you can create an alias for that, and after that run quicly:
alias bundletool='java -jar bundletool-all.jar'
bundletool your_arguments_here
On a mac, it can be easily done using homebrew
brew install bundletool
then you can run commands like this
bundletool install-apks --apks=release.apks
you can use the command below to generate apks
bundletool build-apks --bundle=aab_path.aab --output=release.apks
The above command generates apks file which can later be extracted to give various apk files.
If you have brew installed simply run brew install bundletool
and the alias will be set up for you as well. It did the trick for me.