Skip to content

Commit

Permalink
[CI] Change xcframework bundling scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
wkal-pubnub committed Dec 16, 2024
1 parent cc2c172 commit 97b746a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release/kotlin-maven-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ echo "Build Kotlin and Swift Chat SDK module artifacts"
./gradlew -PENABLE_TARGET_IOS_ALL=true :podPublishReleaseXCFramework assemble
find build/cocoapods/publish/release/PubNubChat.xcframework -exec touch -t 00000000 {} +
rm -f build/cocoapods/publish/release/PubNubChat.xcframework.zip
zip -X -vr build/cocoapods/publish/release/PubNubChat.xcframework.zip build/cocoapods/publish/release/PubNubChat.xcframework
touch -t 00000000 build/cocoapods/publish/release/PubNubChat.xcframework.zip
pushd build/cocoapods/publish/release
zip -X -vr PubNubChat.xcframework.zip PubNubChat.xcframework
touch -t 00000000 PubNubChat.xcframework.zip
popd
CHECKSUM=$(swift package compute-checksum build/cocoapods/publish/release/PubNubChat.xcframework.zip)
echo $CHECKSUM
mkdir build/gh_artifacts
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release/kotlin-pre-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ echo "Update Swift Chat SDK checksum in Package.swift"
./gradlew -PENABLE_TARGET_IOS_ALL=true :podPublishReleaseXCFramework
find build/cocoapods/publish/release/PubNubChat.xcframework -exec touch -t 00000000 {} +
rm -f build/cocoapods/publish/release/PubNubChat.xcframework.zip
zip -X -vr build/cocoapods/publish/release/PubNubChat.xcframework.zip build/cocoapods/publish/release/PubNubChat.xcframework
touch -t 00000000 build/cocoapods/publish/release/PubNubChat.xcframework.zip
pushd build/cocoapods/publish/release
zip -X -vr PubNubChat.xcframework.zip PubNubChat.xcframework
touch -t 00000000 PubNubChat.xcframework.zip
popd
CHECKSUM=$(swift package compute-checksum build/cocoapods/publish/release/PubNubChat.xcframework.zip)
echo $CHECKSUM
sed -i.bak "s/checksum: \"[a-z0-9]*\"/checksum: \"$CHECKSUM\"/g" Package.swift
Expand Down

0 comments on commit 97b746a

Please sign in to comment.