Skip to content

Commit

Permalink
fix: checksum correctly updated (#123)
Browse files Browse the repository at this point in the history
Co-authored-by: Ahmed Moussa <ahmed.moussa@iohk.io>
Signed-off-by: Goncalo Frade <goncalo.frade@iohk.io>
  • Loading branch information
goncalo-frade-iohk and hamada147 committed May 20, 2024
1 parent 481bcbc commit 5e665a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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: "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: "rm -f Package.swift && ./.scripts/updatePackage.swift 0.0.0 $(swift package compute-checksum 'apollo/build/packages/ApolloSwift/Apollo.xcframework.zip') ./.scripts/TemplatePackage.swift Package.swift" } ]
- [
"@semantic-release/git",
{
Expand Down
1 change: 1 addition & 0 deletions .scripts/updatePackage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func main() {
let outputPath = args[4]

do {
print("Updating reference to: \(ref) and checksum to:\(checksum)")
// Read the content of the file
let fileContent = try String(contentsOfFile: inputPath, encoding: .utf8)

Expand Down

0 comments on commit 5e665a0

Please sign in to comment.