Skip to content

Commit

Permalink
fix: correct swift checksum generation during packaging (#128)
Browse files Browse the repository at this point in the history
Co-authored-by: Ahmed Moussa <[email protected]>
Signed-off-by: Anton Baliasnikov <[email protected]>
  • Loading branch information
Anton Baliasnikov and hamada147 committed May 20, 2024
1 parent 296da99 commit 9ffca0e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 66 deletions.
2 changes: 1 addition & 1 deletion .releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins:
- [ '@semantic-release/exec', {
prepareCmd: '(cd ./apollo/build/packages/ApolloSwift && zip -r "Apollo.xcframework.zip" Apollo.xcframework)' } ]
- [ '@semantic-release/exec', {
prepareCmd: "ls && rm -f Package.swift && rm -f Package.swift && ./.scripts/updatePackage.swift ${nextRelease.version} \"$(swift package compute-checksum ./apollo/build/packages/ApolloSwift/Apollo.xcframework.zip)\" ./.scripts/TemplatePackage.swift Package.swift" } ]
prepareCmd: 'sed -i.bak -e "s/checksum:.*/checksum: \"$(swift package compute-checksum ./apollo/build/packages/ApolloSwift/Apollo.xcframework.zip)\"/g;s/download\/.*\/Apollo.xcframework.zip/download\/v${nextRelease.version}\/Apollo.xcframework.zip/g" Package.swift' } ]
- [
"@semantic-release/git",
{
Expand Down
30 changes: 0 additions & 30 deletions .scripts/TemplatePackage.swift

This file was deleted.

35 changes: 0 additions & 35 deletions .scripts/updatePackage.swift

This file was deleted.

0 comments on commit 9ffca0e

Please sign in to comment.