× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Publishing your Cordova App in Google Store

Wael
Dec 30, 2015
<p><strong>1. </strong>Generate a release build for Android, with the following cordova cli command:<br> $ cordova build --release android</p> <p><strong>2. </strong>Generate your private key using the keytool command that comes with the JDK. <br> $ keytool -genkey -v -keystore myreleasekey.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000<br> You’ll first be prompted to create a password for the keystore. <br> You Should answer the rest of the questions and when it’s all done, <br> you should have a file called myreleasekey.keystore created in the current directory.</p> <p><strong>Note: <br> Make sure to not forget the password<br> Make sure to save this file somewhere safe, if you lose it you won’t be able to submit updates to your app!</strong></p> <p><strong>3. </strong>Sign the unsigned APK, run the jarsigner tool which is also included in the JDK:<br> $ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore myreleasekey.keystore myapp-release-unsigned.apk alias_name</p> <p>4. run the zip align tool to optimize the APK. The zipalign tool can be found in /path/to/Android/sdk/build-tools/VERSION/zipalign.<br> $ zipalign -v 4 myapp-release-unsigned.apk MyApp.apk</p> <p>Now we have our final release binary called MyApp.apk.</p> <p>Thx</p> <p> </p> <p> </p> <p> </p>

Get New Tutorials Delivered to Your Inbox

New tutorials will be sent to your Inbox once a week.

comments powered by Disqus