From e6f5399d536edb6d64ffd334429c28e0b6079530 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Mon, 5 Aug 2024 12:43:22 -0400 Subject: [PATCH] Clear out timestamp and file modes on classes.dex, too. --- GNUmakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 6fe1ad8d..8bca0c18 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -840,8 +840,8 @@ out/apk/TildeFriends-%.fdroid.unsigned.apk: @$(ANDROID_NDK)/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip out/apk-fdroid-$(BUILD_TYPE)/lib/armeabi-v7a/libtildefriends.so @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 + @touch -d @0 out/apk-fdroid-$(BUILD_TYPE)/classes.dex out/apk-fdroid-$(BUILD_TYPE)/lib/*/libtildefriends.so + @chmod 755 out/apk-fdroid-$(BUILD_TYPE)/classes.dex out/apk-fdroid-$(BUILD_TYPE)/lib/*/libtildefriends.so @cd out/apk-fdroid-$(BUILD_TYPE) && zip -X -u ../../$@.zip -q classes.dex 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 && chmod 644 out/apk-fdroid-$(BUILD_TYPE)-raw/$$i; done