Skip to content

Commit 37b643f

Browse files
committed
fix(workflow): use original macOS zip to avoid losing new XCFramework symlinks
1 parent fef3c4a commit 37b643f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ jobs:
168168
codesign --sign "${{ secrets.APPLE_TEAM_ID }}" --timestamp --options runtime dist/CloudSync.xcframework # Then sign the xcframework wrapper
169169
ditto -c -k --keepParent dist/CloudSync.xcframework dist/CloudSync.xcframework.zip
170170
xcrun notarytool submit dist/CloudSync.xcframework.zip --apple-id "${{ secrets.APPLE_ID }}" --password "${{ secrets.APPLE_PASSWORD }}" --team-id "${{ secrets.APPLE_TEAM_ID }}" --wait
171-
rm dist/CloudSync.xcframework.zip
171+
rm -rf dist/CloudSync.xcframework
172172
173173
- name: cleanup keychain for codesign
174174
if: matrix.os == 'macos-15'
@@ -360,8 +360,11 @@ jobs:
360360
if [[ "$name" != "cloudsync-apple-xcframework" && "$name" != "cloudsync-android-aar" ]]; then
361361
tar -czf "${name}-${VERSION}.tar.gz" -C "$folder" .
362362
fi
363-
if [[ "$name" != "cloudsync-android-aar" ]]; then
364-
(cd "$folder" && zip -rq --symlinks "../../${name}-${VERSION}.zip" .)
363+
if [[ "$name" == "cloudsync-apple-xcframework" ]]; then
364+
# Use the ditto-created zip that preserves macOS symlinks
365+
mv "$folder/CloudSync.xcframework.zip" "${name}-${VERSION}.zip"
366+
elif [[ "$name" != "cloudsync-android-aar" ]]; then
367+
(cd "$folder" && zip -rq "../../${name}-${VERSION}.zip" .)
365368
else
366369
cp "$folder"/*.aar "${name}-${VERSION}.aar"
367370
fi

src/cloudsync.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
extern "C" {
1919
#endif
2020

21-
#define CLOUDSYNC_VERSION "1.0.3"
21+
#define CLOUDSYNC_VERSION "1.0.4"
2222
#define CLOUDSYNC_MAX_TABLENAME_LEN 512
2323

2424
#define CLOUDSYNC_VALUE_NOTSET -1

0 commit comments

Comments
 (0)