Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phonegap non debug mode and signing with license key

I've completed a app in phonegap and would like to publish this on the google app store. Every time I download the apk file its in debug mode. How do I go about signing it with a key or keystore to get this to upload into google play as google will not upload it into my account in debug mode.

I'm doing something wrong but can not see how in build.phonegap.com you can sign the app?

Please help

Thanks

like image 708
Grimlockz Avatar asked Jan 31 '13 15:01

Grimlockz


2 Answers

Use this command from the terminal or command prompt to generate keystore file:

keytool -genkey -v -keystore myAppKey.keystore -alias myAppKey -keyalg RSA -validity 10000

This will generate myAppKey.keystore file.

That you have to upload at build.phonegap.com site under your application settings. There you will get signing settings so add your keystore and then select that signing key for your application.

By this phonegap will regenerate android builds and you will get APK which will be used to publish in the google play market.

REFERENCE :

how Google suggests creating an Android keystore

like image 143
Pratik Sharma Avatar answered Sep 30 '22 12:09

Pratik Sharma


Getting the illegal option too - something about copy/pasting from the post above is causing that. If you delete the '-' characters and type them manually using the '-' on your keyboard then it works :)

like image 25
ses Avatar answered Sep 30 '22 13:09

ses