From ff3fbedc18e9b09292ccc79b98fdb2e43408e606 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 4 Aug 2024 11:25:06 -0400 Subject: [PATCH] Fix inconsistent file modes in zip. --- GNUmakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 48e81499..2f8e4983 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -843,9 +843,10 @@ out/apk/TildeFriends-%.fdroid.unsigned.apk: @cp out/apk/res.fdroid.apk $@.zip @cp out/apk/classes.dex out/apk-fdroid-$(BUILD_TYPE)/classes.dex @touch -d @0 out/apk-fdroid-$(BUILD_TYPE)/lib/*/libtildefriends.so + @chmod 755 out/apk-fdroid-$(BUILD_TYPE)/lib/*/libtildefriends.so @cd out/apk-fdroid-$(BUILD_TYPE) && zip -X -u ../../$@.zip -q lib/*/libtildefriends.so && cd ../../ @mkdir out/apk-fdroid-$(BUILD_TYPE)-raw - @for i in $(RAW_FILES); do mkdir -p $$(dirname out/apk-fdroid-$(BUILD_TYPE)-raw/$$i) && cp $$i out/apk-fdroid-$(BUILD_TYPE)-raw/$$i && touch -d @0 out/apk-fdroid-$(BUILD_TYPE)-raw/$$i; done + @for i in $(RAW_FILES); do mkdir -p $$(dirname out/apk-fdroid-$(BUILD_TYPE)-raw/$$i) && cp $$i out/apk-fdroid-$(BUILD_TYPE)-raw/$$i && touch -d @0 out/apk-fdroid-$(BUILD_TYPE)-raw/$$i && chmod 644 out/apk-fdroid-$(BUILD_TYPE)-raw/$$i; done @cd out/apk-fdroid-$(BUILD_TYPE)-raw && zip -X -u ../../$@.zip -q $(RAW_FILES) && cd ../../ @$(ANDROID_BUILD_TOOLS)/zipalign -f 4 $@.zip $@