Created
January 14, 2016 10:11
-
-
Save r115/2415ec6e0491bfbdd6cb to your computer and use it in GitHub Desktop.
Sign and release a cordova app on ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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