Skip to content

Instantly share code, notes, and snippets.

@emcniece
Created October 29, 2015 04:33
Show Gist options
  • Save emcniece/de9efbc487369b4acce7 to your computer and use it in GitHub Desktop.
Save emcniece/de9efbc487369b4acce7 to your computer and use it in GitHub Desktop.
http://www.adamwadeharris.com/sign-publish-phonegap-app-google-play-store-windows/
1. phonegap build android --release
2. cd platforms/android; ant release
3. cd bin; jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore /path/to/keystore/myapp.keystore MyApp-release-unsigned.apk myapp
4. jarsigner -verify -verbose -certs MyApp-release-unsigned.apk
5. zipalign -v 4 MyApp-release-unsigned.apk MyApp.apk
6. Upload .apk to store
Alt #3: http://developer.android.com/tools/publishing/app-signing.html#cert (creates key locally)
$ keytool -genkey -v -keystore MyApp-release.keystore -alias myapp -keyalg RSA -keysize 2048 -validity 10000
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore /path/to/keystore/myapp.keystore MyApp-release-unsigned.apk myapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment