Last active
October 21, 2020 12:13
-
-
Save njovy/e7d61b40c291d141718a64dfc680ba78 to your computer and use it in GitHub Desktop.
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/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" |
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/bash | |
appVersion=$(grep 'version: ' pubspec.yaml | awk '{print $2}') | |
flutter build appbundle --obfuscate --split-debug-info=debug-info/$appVersion/android |
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
# 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