Skip to content

feat: add Homebrew installation support#415

Open
chenhg5 wants to merge 1 commit intomainfrom
feat/issue-413-homebrew-support
Open

feat: add Homebrew installation support#415
chenhg5 wants to merge 1 commit intomainfrom
feat/issue-413-homebrew-support

Conversation

@chenhg5
Copy link
Copy Markdown
Owner

@chenhg5 chenhg5 commented Apr 2, 2026

Summary

  • Add Homebrew formula for macOS users (homebrew/cc-connect.rb)
  • Add GitHub Actions workflow to auto-update formula on release
  • Support brew services for background running
  • Update README with Homebrew installation instructions

Usage

# Add the tap
brew tap chenhg5/cc-connect

# Install cc-connect
brew install cc-connect

# Start as a background service
brew services start cc-connect

Test plan

  • go build ./... passes
  • go vet ./... passes
  • Manual test: create homebrew tap repo and test formula
  • Manual test: brew services start cc-connect works correctly

Notes

To fully enable Homebrew installation, a separate homebrew-cc-connect repository needs to be created as the tap. The GitHub Actions workflow will automatically update the formula when a new release is published.

Closes #413

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>
@chenhg5
Copy link
Copy Markdown
Owner Author

chenhg5 commented Apr 2, 2026

⚠️ CI Lint Failed

The GitHub Actions workflow file has shellcheck issues:

1. SC2086 (multiple locations): Double quote to prevent globbing and word splitting

  • Line 18: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
  • Lines 34-43: Multiple variable usages need quoting

2. SC2129 (line 34): Consider using { cmd1; cmd2; } >> file instead of individual redirects

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.

Copy link
Copy Markdown
Owner Author

@chenhg5 chenhg5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] release to homebrew

2 participants