Last active
June 14, 2017 04:05
-
-
Save rbravo/0f294ce1abafc3d011b148fe35154718 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#In the Command Prompt, change directories to the %JAVA_HOME%\bin folder. | |
#(For example: C:\Program Files (x86)\Java\jdk1.7.0_55\bin). | |
#1) generate KeyStore | |
keytool -genkey -v -keystore c:\my-release-key.keystore -alias johnS -keyalg RSA -keysize 2048 -validity 10000 | |
#2) sign APK | |
jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore <AndroidKeyName>.keystore platforms/android/bin/<ProjectName>-release-unsigned.apk <AndroidKeyNameAlias> | |
#3) zipalign (optional) | |
# go to where android SDK is (example: C:\Users\<USER>\AppData\Local\Android\android-sdk\build-tools\<VERSION>) | |
zipalign -f 4 platforms/android/bin/<ProjectName>-release-unsigned.apk Release/android/<ProjectName>-release.apk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment