diff options
author | cyBerta <cyberta@riseup.net> | 2021-03-26 10:17:06 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2021-03-26 10:17:06 +0100 |
commit | ea37118e5650329e4abb91e1e89b3abbc0a877d1 (patch) | |
tree | a31dcc7fbccf66d4fd1c2b86e9aac7bf8d2293f6 | |
parent | d4902ffbbd846f610260318a857b7e8e2549e5f2 (diff) |
clean up
-rwxr-xr-x | scripts/prepareForDistribution.sh | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/scripts/prepareForDistribution.sh b/scripts/prepareForDistribution.sh index b161a5b3..c81ca2fc 100755 --- a/scripts/prepareForDistribution.sh +++ b/scripts/prepareForDistribution.sh @@ -43,15 +43,9 @@ function sign { fi FINAL_APK="${FILE_DIR}/${FILE_NAME}" - # ALIGNED_UNSIGNED_APK="${FILE_DIR}/aligned-${FILE_NAME}" - # ALIGNED_SIGNED_APK="${FILE_DIR}/aligned-signed-${FILE_NAME}" - - #echo -e "${GREEN} -> zip align ${ALIGNED_UNSIGNED_APK}${NC}" - #${ANDROID_BUILD_TOOLS}/zipalign -v -p 4 "${FINAL_APK}" ${ALIGNED_UNSIGNED_APK} > /dev/null && echo "zip alignment successful" || quit echo -e "${GREEN} -> apksign ${FINAL_APK}${NC}" ${ANDROID_BUILD_TOOLS}/apksigner sign --ks "${KEY_STORE_STRING}" --out ${FINAL_APK} ${FINAL_APK} || quit - #rm ${ALIGNED_UNSIGNED_APK} - + FINGERPRINT=$(unzip -p ${FINAL_APK} META-INF/*.RSA | keytool -printcert | grep "SHA256" | tr -d '[:space:]') || quit if [[ ${FINGERPRINT} == ${EXPECTED_FINGERPRINT} ]] @@ -62,8 +56,6 @@ function sign { quit fi - # echo -e "${GREEN} -> rename aligned signed apk to ${FINAL_APK}${NC}" - # cp ${ALIGNED_SIGNED_APK} ${FINAL_APK} || quit cleanUp #---- GPG SIGNING ---- |