summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-03-25 20:22:31 +0100
committercyBerta <cyberta@riseup.net>2021-03-25 20:22:31 +0100
commit07372e3ed184ab4bca5fdae469409410faec6d2c (patch)
tree726da7382b142b08f0362bec5d20e2570cdbda1c /scripts
parent1c5e044bd87d3522933db90112d8b42a8bad3cd1 (diff)
fix prepareForDistribution script after update gradle plugin
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/prepareForDistribution.sh22
1 files changed, 11 insertions, 11 deletions
diff --git a/scripts/prepareForDistribution.sh b/scripts/prepareForDistribution.sh
index 9c198689..e6c3ef79 100755
--- a/scripts/prepareForDistribution.sh
+++ b/scripts/prepareForDistribution.sh
@@ -43,16 +43,16 @@ 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 ${ALIGNED_UNSIGNED_APK}${NC}"
- ${ANDROID_BUILD_TOOLS}/apksigner sign --ks "${KEY_STORE_STRING}" --out ${ALIGNED_SIGNED_APK} ${ALIGNED_UNSIGNED_APK} || quit
- rm ${ALIGNED_UNSIGNED_APK}
+ # 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 ${ALIGNED_SIGNED_APK} META-INF/*.RSA | keytool -printcert | grep "SHA256" | tr -d '[:space:]') || quit
+ FINGERPRINT=$(unzip -p ${FINAL_APK} META-INF/*.RSA | keytool -printcert | grep "SHA256" | tr -d '[:space:]') || quit
if [[ ${FINGERPRINT} == ${EXPECTED_FINGERPRINT} ]]
then
@@ -62,8 +62,8 @@ function sign {
quit
fi
- echo -e "${GREEN} -> rename aligned signed apk to ${FINAL_APK}${NC}"
- cp ${ALIGNED_SIGNED_APK} ${FINAL_APK} || quit
+ # echo -e "${GREEN} -> rename aligned signed apk to ${FINAL_APK}${NC}"
+ # cp ${ALIGNED_SIGNED_APK} ${FINAL_APK} || quit
cleanUp
#---- GPG SIGNING ----