From 5a0c77d06a72b0f7a521cc485ec55f5b465f1039 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 26 Nov 2023 17:36:35 +0000 Subject: [PATCH] Trim down dist sizes by filtering zip contents more effectively. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4646 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- GNUmakefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 8c89f3b2..a4e67db4 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -448,7 +448,7 @@ $(SODIUM_OBJS): CFLAGS += \ -Wno-attributes \ -Ideps/libsodium/builds/msvc \ -Ideps/libsodium/src/libsodium/include/sodium -#(SODIUM_OBJS_unix): CFLAGS += \ +$(SODIUM_OBJS_unix): CFLAGS += \ -DHAVE_ALLOCA_H SQLITE_SOURCES := deps/sqlite/sqlite3.c @@ -700,7 +700,7 @@ PACKAGE_DIRS := \ deps/codemirror/ \ deps/lit/ -RAW_FILES := $(filter-out apps/gg% apps/welcome%, $(shell find $(PACKAGE_DIRS) -type f)) +RAW_FILES := $(filter-out apps/gg% apps/welcome% %.map, $(shell find $(PACKAGE_DIRS) -type f)) out/apk/TildeFriends-arm-debug.unsigned.apk: BUILD_TYPE := debug out/apk/TildeFriends-arm-release.unsigned.apk: BUILD_TYPE := release @@ -757,7 +757,7 @@ out/%.app/tildefriends.png: src/ios/tildefriends.png @cp -v $< $@ out/%/data.zip: $(RAW_FILES) - @zip -u $@ -q -9 -x '*.map' -r $(PACKAGE_DIRS) $(RAW_FILES) + @zip -u $@ -q -9 $(RAW_FILES) out/tildefriends-%.app/tildefriends: out/%/tildefriends out/tildefriends-%.app/Info.plist out/tildefriends-%.app/tildefriends.png out/tildefriends-%.app/data.zip @mkdir -p $(dir $@)