Skip to content

Commit

Permalink
Fix jar signing script
Browse files Browse the repository at this point in the history
  • Loading branch information
helloworld1 committed May 20, 2019
1 parent c5b3da2 commit fa7aa00
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/sign-apk.sh
@@ -1,4 +1,8 @@
#!/bin/sh

jarsigner -verbose -digestalg SHA1 -sigalg MD5withRSA -keystore ~/Documents/keys/liberty-android-release.keystore "app/build/outputs/apk/app-release-unsigned.apk" liberty-android-key
zipalign -v 4 "app/build/outputs/apk/app-release-unsigned.apk" "app/build/outputs/apk/FreeOtpPlus-release.apk"
APK_DIR="app/build/outputs/apk/release"
UNSIGNED_APK_FILE_NAME="app-release-unsigned.apk"
SIGNED_APK_FILE_NAME="FreeOtpPlus-release.apk"

jarsigner -verbose -digestalg SHA1 -sigalg MD5withRSA -keystore ~/Documents/keys/liberty-android-release.keystore "$APK_DIR/$UNSIGNED_APK_FILE_NAME" liberty-android-key
zipalign -v 4 "$APK_DIR/$UNSIGNED_APK_FILE_NAME" "$APK_DIR/$SIGNED_APK_FILE_NAME"

0 comments on commit fa7aa00

Please sign in to comment.