Open
Conversation
Add Homebrew formula and GitHub Actions workflow for macOS users. Features: - Homebrew formula for cc-connect (homebrew/cc-connect.rb) - GitHub Actions workflow to auto-update formula on release - Support for brew services (background running) - Updated README with Homebrew installation instructions Installation: brew tap chenhg5/cc-connect brew install cc-connect brew services start cc-connect Closes #413 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Owner
Author
|
The GitHub Actions workflow file has shellcheck issues: 1. SC2086 (multiple locations): Double quote to prevent globbing and word splitting
2. SC2129 (line 34): Consider using Fix example: - name: Calculate SHA256 checksums
id: checksums
run: |
VERSION="${{ steps.version.outputs.VERSION }}"
cd /tmp/assets
{
echo "darwin_amd64=$(sha256sum "cc-connect-${VERSION}-darwin-amd64.tar.gz" | cut -d' ' -f1)"
echo "darwin_arm64=$(sha256sum "cc-connect-${VERSION}-darwin-arm64.tar.gz" | cut -d' ' -f1)"
echo "linux_amd64=$(sha256sum "cc-connect-${VERSION}-linux-amd64.tar.gz" | cut -d' ' -f1)"
echo "linux_arm64=$(sha256sum "cc-connect-${VERSION}-linux-arm64.tar.gz" | cut -d' ' -f1)"
} >> "$GITHUB_OUTPUT"On the feature itself: Great addition! Homebrew support will make installation much easier for macOS users. The formula structure looks correct with platform-specific downloads and service support. |
chenhg5
commented
Apr 3, 2026
Owner
Author
chenhg5
left a comment
There was a problem hiding this comment.
CI lint 失败(shellcheck):
.github/workflows/homebrew.yml:18:9: SC2086: Double quote to prevent globbing and word splitting
.github/workflows/homebrew.yml:34:9: SC2129: Consider using { cmd1; cmd2; } >> file instead of individual redirects
.github/workflows/homebrew.yml:34:9: SC2086: Double quote to prevent globbing and word splitting (多处)
需要修复 homebrew.yml 中的 shellcheck 问题。(owner PR)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
homebrew/cc-connect.rb)brew servicesfor background runningUsage
Test plan
go build ./...passesgo vet ./...passesbrew services start cc-connectworks correctlyNotes
To fully enable Homebrew installation, a separate
homebrew-cc-connectrepository needs to be created as the tap. The GitHub Actions workflow will automatically update the formula when a new release is published.Closes #413