Created
June 11, 2017 22:38
-
-
Save reginaldojunior/c5b407ea639c8b980a4b662b23304520 to your computer and use it in GitHub Desktop.
build ionic ubuntu
This file contains hidden or 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
# seta a variavel android linux | |
export ANDROID_HOME="/home/reginaldo/android-sdk-linux/" | |
# gera o apk de producao sem assinatura | |
cordova build --release android | |
# gera a chave | |
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 | |
# assina o apk gerado coloca o caminho do apk gerado | |
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore android-release-unsigned.apk alias_name | |
# renomeia o apk usando o zipalign | |
zipalign -v 4 android-release-unsigned.apk sufocoauto-0.0.6.apk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment