Skip to content

Instantly share code, notes, and snippets.

@njovy
Last active October 21, 2020 12:13
Show Gist options
  • Save njovy/e7d61b40c291d141718a64dfc680ba78 to your computer and use it in GitHub Desktop.
Save njovy/e7d61b40c291d141718a64dfc680ba78 to your computer and use it in GitHub Desktop.
#!/bin/bash
. android/key.properties
output="build/app/outputs/apks/release/app-release.apks"
rm -rf $output
bundletool build-apks --bundle=build/app/outputs/bundle/release/app-release.aab --output=$output --ks=$storeFile --ks-pass=pass:$storePassword --ks-key-alias=$keyAlias --key-pass=pass:$keyPassword
echo "apks generated at $output"
bundletool install-apks --apks=$output
echo "apks installed"
#!/bin/bash
appVersion=$(grep 'version: ' pubspec.yaml | awk '{print $2}')
flutter build appbundle --obfuscate --split-debug-info=debug-info/$appVersion/android
# key.properties should be located in $ROOT/android
storePassword=test
keyPassword=test
keyAlias=test
storeFile=/Users/lychee/certs/lychee.keystore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment