Skip to content

Commit

Permalink
set correct formula for macos-circleci build
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aebischer committed Jan 31, 2025
1 parent 83dcf13 commit de77084
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,18 +200,18 @@ jobs:
git config --global user.name "circleci Build"
git clone --depth 1 https://github.com/gyselroth/homebrew-core > /dev/null 2>&1
sed -i 's/version.*$/version "'$version'"/g' homebrew-core/Formula/tubectltest.rb
sed -i 's/url.*$/url "https:\/\/github.com\/gyselroth\/tubee-client-cli\/releases\/download\/'$CIRCLE_TAG'\/tubectl-osx-arm64"/g' homebrew-core/Formula/tubectltest.rb
sed -i 's/url.*$/url "https:\/\/github.com\/gyselroth\/tubee-client-cli\/releases\/download\/'$CIRCLE_TAG'\/tubectl-osx-x64"/g' homebrew-core/Formula/tubectltest.rb
sed -i 's/version.*$/version "'$version'"/g' homebrew-core/Formula/tubectl.rb
sed -i 's/url.*$/url "https:\/\/github.com\/gyselroth\/tubee-client-cli\/releases\/download\/'$CIRCLE_TAG'\/tubectl-osx-arm64"/g' homebrew-core/Formula/tubectl.rb
sed -i 's/url.*$/url "https:\/\/github.com\/gyselroth\/tubee-client-cli\/releases\/download\/'$CIRCLE_TAG'\/tubectl-osx-x64"/g' homebrew-core/Formula/tubectl.rb
sha256_arm64=$(sha256sum dist/tubectl-osx-arm64 | cut -d ' ' -f1) && echo $sha256_arm64
sed -i '/on_arm/,/end/{s/sha256.*/sha256 "'$sha256_arm64'"/}' homebrew-core/Formula/tubectltest.rb
sed -i '/on_arm/,/end/{s/sha256.*/sha256 "'$sha256_arm64'"/}' homebrew-core/Formula/tubectl.rb
sha256_x64=$(sha256sum dist/tubectl-osx-x64 | cut -d ' ' -f1) && echo $sha256_x64
sed -i '/on_intel/,/end/{s/sha256.*/sha256 "'$sha256_x64'"/}' homebrew-core/Formula/tubectltest.rb
sed -i '/on_intel/,/end/{s/sha256.*/sha256 "'$sha256_x64'"/}' homebrew-core/Formula/tubectl.rb
cd homebrew-core
git commit --message "tubectl release $CIRCLE_TAG" Formula/tubectltest.rb
git commit --message "tubectl release $CIRCLE_TAG" Formula/tubectl.rb
git remote set-url origin [email protected]:gyselroth/homebrew-core.git
git push origin master > /dev/null 2>&1
fi;
Expand Down

0 comments on commit de77084

Please sign in to comment.