-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy
More file actions
13 lines (9 loc) · 649 Bytes
/
deploy
File metadata and controls
13 lines (9 loc) · 649 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
# Building Android APK File
ionic cordova build android --prod --release
# Remove the ZIPAligned File if exist
rm platforms/android/app/build/outputs/apk/release/app-release-signed-zipaligned.apk
# Signing Android APK File
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.jks platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk dhis2udsm
# Zip Aligning The APK File Ready For The Publication In Google Play Store
zipalign -v 4 platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk platforms/android/app/build/outputs/apk/release/app-release-signed-zipaligned.apk