Skip to content

Commit

Permalink
zip
Browse files Browse the repository at this point in the history
  • Loading branch information
kabiroberai committed Nov 18, 2024
1 parent d21e0cf commit 21bb512
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
with:
draft: true
files: |
output/curl.xcframework
output/tatsu.xcframework
output/plist.xcframework
output/usbmuxd.xcframework
output/libimobiledeviceGlue.xcframework
output/libimobiledevice.xcframework
output/curl.xcframework.zip
output/tatsu.xcframework.zip
output/plist.xcframework.zip
output/usbmuxd.xcframework.zip
output/libimobiledeviceGlue.xcframework.zip
output/libimobiledevice.xcframework.zip
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ export SUPERLIBS_LIB_INFOPLIST
SUPERLIBS_LIB_STAMPS_DIR := $(BUILD_DIR)/stamps/$(CURR_LIB)
SUPERLIBS_LIB_AUTOGEN_FILES := $(addprefix $($(CURR_LIB)_DIR)/,$($(CURR_LIB)_AUTOGEN_FILES))
SUPERLIBS_LIB_AUTOGEN_STAMP := $(SUPERLIBS_LIB_STAMPS_DIR)/autogen.stamp
SUPERLIBS_LIB_XCFRAMEWORK := $(OUTPUT_DIR)/$(CURR_LIB).xcframework
SUPERLIBS_LIB_XCFRAMEWORKS_DIR := $(BUILD_DIR)/xcframeworks
SUPERLIBS_LIB_XCFRAMEWORK := $(SUPERLIBS_LIB_XCFRAMEWORKS_DIR)/$(CURR_LIB).xcframework
SUPERLIBS_LIB_XCFRAMEWORK_ZIP := $(OUTPUT_DIR)/$(CURR_LIB).xcframework.zip

build-lib: $(SUPERLIBS_LIB_AUTOGEN_STAMP)
@+$(MAKE) $(SUPERLIBS_MAKEFLAGS) $(SUPERLIBS_LIB_XCFRAMEWORK)
@+$(MAKE) $(SUPERLIBS_MAKEFLAGS) $(SUPERLIBS_LIB_XCFRAMEWORK_ZIP)

$(SUPERLIBS_LIB_AUTOGEN_STAMP): $(SUPERLIBS_LIB_AUTOGEN_FILES)
@rm -rf $@.tmp
Expand All @@ -112,8 +114,13 @@ $(SUPERLIBS_LIB_AUTOGEN_STAMP): $(SUPERLIBS_LIB_AUTOGEN_FILES)

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

$(SUPERLIBS_LIB_XCFRAMEWORK_ZIP): $(SUPERLIBS_LIB_XCFRAMEWORK)
@rm -rf $@
zip -yqr $@ $(SUPERLIBS_LIB_XCFRAMEWORK)

invoke-platform-%:
@+$(MAKE) $(SUPERLIBS_MAKEFLAGS) CURR_PLATFORM=$* build-platform

Expand Down

0 comments on commit 21bb512

Please sign in to comment.