Skip to content

Commit 98bd58f

Browse files
committed
Fix jar signing script
1 parent 58dfa89 commit 98bd58f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/sign-apk.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/sh
22

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

0 commit comments

Comments
 (0)