Phonegap APK signing
When you are ready to publish your Phonegap app on Google Play, you need to build it.
1 |
phonegap build android --release |
This will provide a build file, usually inside platforms/android/build/outputs/apk/android-release-unsigned.apk Then you need to sign it with your private key.
1 |
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore <pathToYourKeystore> <pathToAPK> <aliasname> |
And the last step is to zipalign it
1 |
zipalign -v 4 android-release-unsigned.apk android-release.apk |
If zip align is not in your path, try […]