Skip to content

Instantly share code, notes, and snippets.

@r115
Created January 14, 2016 10:11
Show Gist options
  • Save r115/2415ec6e0491bfbdd6cb to your computer and use it in GitHub Desktop.
Save r115/2415ec6e0491bfbdd6cb to your computer and use it in GitHub Desktop.
Sign and release a cordova app on ubuntu
#Step 1
keytool -genkey -v -keystore my_app.keystore -alias my_app_key -keyalg RSA -keysize 2048 -validity 10000
#Step 2
cordova build --release android
#Step 3
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my_app.keystore platforms/android/build/outputs/apk/android-release-unsigned.apk my_app_key
#Step 4
zipalign -f -v 4 input.apk output.apk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment