Skip to content

Commit

Permalink
fix: try simplified sed replacement for swift
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Baliasnikov committed Dec 12, 2023
1 parent bf059c3 commit 568972b
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 568972b

Please sign in to comment.