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
This commit is contained in:
Cory McWilliams 2023-11-26 17:36:35 +00:00
parent e54bd316d5
commit 5a0c77d06a

View File

@ -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 $@)