File tree 5 files changed +11
-10
lines changed
5 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -112,14 +112,14 @@ jobs:
112
112
GH_REPO : ${{ github.repository }}
113
113
run : |
114
114
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
116
116
117
117
# For SPM package
118
118
- name : Compute checksum and update Package.swift
119
119
run : |
120
- CHECKSUM=$(swift package compute-checksum powersync-sqlite-core.xcframework.tar.gz )
120
+ CHECKSUM=$(swift package compute-checksum powersync-sqlite-core.xcframework.zip )
121
121
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 \"|" \
123
123
-e "s|checksum: \".*\"|checksum: \"$CHECKSUM\"|" \
124
124
Package.swift
125
125
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ name: "temp test spm"
4
4
jobs :
5
5
build :
6
6
name : Building iOS
7
- runs-on : macos-15
7
+ runs-on : macos-latest
8
8
steps :
9
9
- uses : actions/checkout@v3
10
10
with :
33
33
# For SPM package
34
34
- name : Compute checksum and update Package.swift
35
35
run : |
36
- CHECKSUM=$(swift package compute-checksum powersync-sqlite-core.xcframework.tar.gz )
36
+ CHECKSUM=$(swift package compute-checksum powersync-sqlite-core.xcframework.zip )
37
37
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 \"|" \
39
39
-e "s|checksum: \".*\"|checksum: \"$CHECKSUM\"|" \
40
40
Package.swift
41
41
Original file line number Diff line number Diff line change 8
8
* .xcframework
9
9
* .tar.gz
10
10
* .tar.xz
11
+ * .zip
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ let package = Package(
17
17
targets: [
18
18
. binaryTarget(
19
19
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 "
22
22
)
23
23
]
24
24
)
Original file line number Diff line number Diff line change 64
64
65
65
cp -Rf " ${BUILD_DIR} /powersync-sqlite-core.xcframework" " powersync-sqlite-core.xcframework"
66
66
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
69
69
rm -rf ${BUILD_DIR}
70
70
}
71
71
You can’t perform that action at this time.
0 commit comments