Skip to content

Commit 21bb512

Browse files
committed
zip
1 parent d21e0cf commit 21bb512

2 files changed

Lines changed: 15 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
with:
2222
draft: true
2323
files: |
24-
output/curl.xcframework
25-
output/tatsu.xcframework
26-
output/plist.xcframework
27-
output/usbmuxd.xcframework
28-
output/libimobiledeviceGlue.xcframework
29-
output/libimobiledevice.xcframework
24+
output/curl.xcframework.zip
25+
output/tatsu.xcframework.zip
26+
output/plist.xcframework.zip
27+
output/usbmuxd.xcframework.zip
28+
output/libimobiledeviceGlue.xcframework.zip
29+
output/libimobiledevice.xcframework.zip

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,12 @@ export SUPERLIBS_LIB_INFOPLIST
9898
SUPERLIBS_LIB_STAMPS_DIR := $(BUILD_DIR)/stamps/$(CURR_LIB)
9999
SUPERLIBS_LIB_AUTOGEN_FILES := $(addprefix $($(CURR_LIB)_DIR)/,$($(CURR_LIB)_AUTOGEN_FILES))
100100
SUPERLIBS_LIB_AUTOGEN_STAMP := $(SUPERLIBS_LIB_STAMPS_DIR)/autogen.stamp
101-
SUPERLIBS_LIB_XCFRAMEWORK := $(OUTPUT_DIR)/$(CURR_LIB).xcframework
101+
SUPERLIBS_LIB_XCFRAMEWORKS_DIR := $(BUILD_DIR)/xcframeworks
102+
SUPERLIBS_LIB_XCFRAMEWORK := $(SUPERLIBS_LIB_XCFRAMEWORKS_DIR)/$(CURR_LIB).xcframework
103+
SUPERLIBS_LIB_XCFRAMEWORK_ZIP := $(OUTPUT_DIR)/$(CURR_LIB).xcframework.zip
102104

103105
build-lib: $(SUPERLIBS_LIB_AUTOGEN_STAMP)
104-
@+$(MAKE) $(SUPERLIBS_MAKEFLAGS) $(SUPERLIBS_LIB_XCFRAMEWORK)
106+
@+$(MAKE) $(SUPERLIBS_MAKEFLAGS) $(SUPERLIBS_LIB_XCFRAMEWORK_ZIP)
105107

106108
$(SUPERLIBS_LIB_AUTOGEN_STAMP): $(SUPERLIBS_LIB_AUTOGEN_FILES)
107109
@rm -rf $@.tmp
@@ -112,8 +114,13 @@ $(SUPERLIBS_LIB_AUTOGEN_STAMP): $(SUPERLIBS_LIB_AUTOGEN_FILES)
112114

113115
$(SUPERLIBS_LIB_XCFRAMEWORK): $(foreach plat,$($(CURR_LIB)_PLATFORMS),invoke-platform-$(plat))
114116
@rm -rf $@
117+
@mkdir -p $(dir $@)
115118
xcodebuild -create-xcframework $(foreach plat,$($(CURR_LIB)_PLATFORMS),-framework $(BUILD_DIR)/$(plat)/$(CURR_LIB).framework) -output $@
116119

120+
$(SUPERLIBS_LIB_XCFRAMEWORK_ZIP): $(SUPERLIBS_LIB_XCFRAMEWORK)
121+
@rm -rf $@
122+
zip -yqr $@ $(SUPERLIBS_LIB_XCFRAMEWORK)
123+
117124
invoke-platform-%:
118125
@+$(MAKE) $(SUPERLIBS_MAKEFLAGS) CURR_PLATFORM=$* build-platform
119126

0 commit comments

Comments
 (0)