Skip to content

Instantly share code, notes, and snippets.

@Ademking
Created July 24, 2018 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ademking/3e8cc869abb64d7cb61c68db7d421a15 to your computer and use it in GitHub Desktop.
Save Ademking/3e8cc869abb64d7cb61c68db7d421a15 to your computer and use it in GitHub Desktop.
πŸ’™ Ionic 3: Build & Publish Commands...

1. Generate Unsigned APK

ionic cordova build android --prod --release

2. Generate Key

keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

3. Sign the Unsigned APK

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore app-release-unsigned.apk alias_name

4. Generate the Final APK

zipalign -v 4 C:\PATH_TO_UNSIGNED_APK\app-release-unsigned.apk C:\PATH_WHERE_YOU_WANT_TO_GENERATE_NEW_APK\Name_Of_New_APK.apk

5. Drink Your Coffee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment