File tree Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -112,14 +112,14 @@ jobs:
112112 GH_REPO : ${{ github.repository }}
113113 run : |
114114 gh release upload "${{ needs.draft_release.outputs.tag }}" powersync-sqlite-core.xcframework.tar.xz
115- gh release upload "${{ needs.draft_release.outputs.tag }}" powersync-sqlite-core.xcframework.tar.gz
115+ gh release upload "${{ needs.draft_release.outputs.tag }}" powersync-sqlite-core.xcframework.zip
116116
117117 # For SPM package
118118 - name : Compute checksum and update Package.swift
119119 run : |
120- CHECKSUM=$(swift package compute-checksum powersync-sqlite-core.xcframework.tar.gz )
120+ CHECKSUM=$(swift package compute-checksum powersync-sqlite-core.xcframework.zip )
121121 sed -i '' \
122- -e "s|url: \".*\"|url: \"https://github.com/${{ github.repository }}/releases/download/${{ needs.draft_release.outputs.tag }}/powersync-sqlite-core.xcframework.tar.gz \"|" \
122+ -e "s|url: \".*\"|url: \"https://github.com/${{ github.repository }}/releases/download/${{ needs.draft_release.outputs.tag }}/powersync-sqlite-core.xcframework.zip \"|" \
123123 -e "s|checksum: \".*\"|checksum: \"$CHECKSUM\"|" \
124124 Package.swift
125125
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ name: "temp test spm"
44jobs :
55 build :
66 name : Building iOS
7- runs-on : macos-15
7+ runs-on : macos-latest
88 steps :
99 - uses : actions/checkout@v3
1010 with :
3333 # For SPM package
3434 - name : Compute checksum and update Package.swift
3535 run : |
36- CHECKSUM=$(swift package compute-checksum powersync-sqlite-core.xcframework.tar.gz )
36+ CHECKSUM=$(swift package compute-checksum powersync-sqlite-core.xcframework.zip )
3737 sed -i '' \
38- -e "s|url: \".*\"|url: \"https://github.com/${{ github.repository }}/releases/download/0 .3.0/powersync-sqlite-core.xcframework.tar.gz \"|" \
38+ -e "s|url: \".*\"|url: \"https://github.com/${{ github.repository }}/releases/download/v0 .3.0/powersync-sqlite-core.xcframework.zip \"|" \
3939 -e "s|checksum: \".*\"|checksum: \"$CHECKSUM\"|" \
4040 Package.swift
4141
Original file line number Diff line number Diff line change 88* .xcframework
99* .tar.gz
1010* .tar.xz
11+ * .zip
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ let package = Package(
1717 targets: [
1818 . binaryTarget(
1919 name: packageName,
20- url: " https://github.com/powersync-ja/powersync-sqlite-core/releases/download/0 .3.0/powersync-sqlite-core.xcframework.tar.gz " ,
21- checksum: " e8b8c22540b0af1c5a1e38c29917e6d6fd8098b3ef2052b2d5beb02d92009903 "
20+ url: " https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v0 .3.0/powersync-sqlite-core.xcframework.zip " ,
21+ checksum: " SHOULD BE UPDATED BY GITHUB ACTION "
2222 )
2323 ]
2424)
Original file line number Diff line number Diff line change 6464
6565 cp -Rf " ${BUILD_DIR} /powersync-sqlite-core.xcframework" " powersync-sqlite-core.xcframework"
6666 tar -cJvf powersync-sqlite-core.xcframework.tar.xz powersync-sqlite-core.xcframework LICENSE README.md
67- # swift command used for checksum required for SPM package does not support xz so need to create a tar.gz
68- tar -cJvf powersync-sqlite-core.xcframework.tar.gz powersync-sqlite-core.xcframework LICENSE README.md
67+ # swift command used for checksum required for SPM package does not support xz so need to create a zip file
68+ zip -r powersync-sqlite-core.xcframework.zip powersync-sqlite-core.xcframework LICENSE README.md
6969 rm -rf ${BUILD_DIR}
7070}
7171
You can’t perform that action at this time.
0 commit comments