Created
September 19, 2018 21:45
-
-
Save vazgabriel/e380536097dcee9f8fc04e32de71c897 to your computer and use it in GitHub Desktop.
assign-android-application
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
######################################################## | |
# Tips to sign the application | |
# @author Gabriel Vaz <[email protected]> | |
######################################################## | |
# First moment comands (generating key) change "YOUR-KEY" and "YOUR-ALIAS" for your key and alias | |
# keytool -genkey -v -keystore YOUR-KEY.jks -keyalg RSA -keysize 2048 -validity 10000 -alias YOUR-ALIAS | |
# Run follow commands to sign the application | |
# Move unsigned APK for "keys folder" (need to create a keys folder, just for facilitate) | |
mv ./platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk ./keys/ && cd keys | |
# Change "YOUR-KEY" and "YOUR-ALIAS" for your key and alias | |
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore YOUR-KEY.jks app-release-unsigned.apk YOUR-ALIAS | |
# password: YOUR-PASSWORD (defined in keytool generation) | |
# Zip for your name APK | |
zipalign -v 4 app-release-unsigned.apk YOURAPPNAME.apk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment