Skip to content

Commit 90a509a

Browse files
committed
fix(Makefile): create Headers directory and copy header files for xcframework
1 parent d081e0f commit 90a509a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ jobs:
172172
if: always()
173173
with:
174174
name: cloudsync-${{ matrix.name }}${{ matrix.arch && format('-{0}', matrix.arch) || '' }}
175-
path: dist/${{ matrix.name == 'wasm' && 'sqlite-wasm.zip' || 'cloudsync.*'}}
175+
path: dist/${{ matrix.name == 'wasm' && 'sqlite-wasm.zip' || matrix.name == 'apple-xcframework' && 'CloudSync.xcframework' || 'cloudsync.*'}}
176176
if-no-files-found: error
177177

178178
release:
@@ -298,5 +298,7 @@ jobs:
298298
files: |
299299
cloudsync-*-${{ steps.tag.outputs.version }}.zip
300300
cloudsync-*-${{ steps.tag.outputs.version }}.tar.gz
301+
CloudSync-*-${{ steps.tag.outputs.version }}.zip
302+
CloudSync-*-${{ steps.tag.outputs.version }}.tar.gz
301303
sqlite-*-sync-${{ steps.tag.outputs.version }}-wasm.zip
302304
make_latest: true

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,8 @@ $(DIST_DIR)/%.xcframework: $(LIB_NAMES)
346346
@$(foreach i,1 2 3,\
347347
lib=$(word $(i),$(LIB_NAMES)); \
348348
fmwk=$(word $(i),$(FMWK_NAMES)); \
349-
mkdir -p $(DIST_DIR)/$$fmwk/CloudSync.framework; \
349+
mkdir -p $(DIST_DIR)/$$fmwk/CloudSync.framework/Headers; \
350+
cp src/cloudsync.h src/sqlite3ext.h $(DIST_DIR)/$$fmwk/CloudSync.framework/Headers/; \
350351
printf "$(PLIST)" > $(DIST_DIR)/$$fmwk/CloudSync.framework/Info.plist; \
351352
mv $(DIST_DIR)/$$lib $(DIST_DIR)/$$fmwk/CloudSync.framework/cloudsync; \
352353
install_name_tool -id "@rpath/CloudSync.framework/cloudsync" $(DIST_DIR)/$$fmwk/CloudSync.framework/cloudsync; \

0 commit comments

Comments
 (0)