Go to the output .apk directory:
cd /Users/patriciolopez/Repositories/almapp/uc-courses-mobile/platforms/android/build/outputs/apk/
Put your release.keystore
in that folder, if you don't have one (change ALIAS
):
keytool -genkey -v -keystore release.keystore -alias ALIAS -keyalg RSA -keysize 2048 -validity 10000
Run:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore release.keystore android-release-unsigned.apk ALIAS
rm app.apk; zipalign -v 4 android-release-unsigned.apk app.apk
Your file app.apk
is ready :)