Manu Ganji

Signing Phonegap apps for Google Play

  • Run phonegap build android from the folder containing www folder
  • cd to this path platforms/android/
  • Make sure ant.properties in this folder contains these keys and the right values

key.store=

key.alias=

key.store.password=

key.alias.password=

  • increment the versionCode in AndroidManifest.xml in this folder
  • cd to ant-build folder from this folder
  • run ./build --release in this folder.

Now you have a bunch of .apk files in this folder. The one with the name <Project_Name>-release.apk is what you can upload to Google play.

References:

  1. Stack Overflow answer about how to build a release from a phonegap app
  2. Stack Overflow answer about how to specify your developer signature in a properties file
  3. About versionCode param in PhoneGap community forums