Skip to content

feat: add Homebrew installation - #302

Merged
ernado merged 2 commits into
mainfrom
feat/homebrew-tap
Nov 16, 2026
Merged

ernado merged 2 commits into
mainfrom
feat/homebrew-tap

Conversation

@ernado

@ernado ernado commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Carries #273 by @zamai (closed unmerged) onto current main, authorship kept, plus one follow-up commit.

GoReleaser publishes a tg cask to gotd/homebrew-tap on each release; README documents brew install --cask gotd/tap/tg. The cask drops the quarantine attribute from the unsigned binary on macOS.

Changes on top of #273:

  • hooks.post.install → install_steps. The old hook renders postflight, which Homebrew 7 reports as deprecated on every install. Needs GoReleaser v2.19+ (CI takes the latest v2).
  • The tap is pushed over SSH with a write deploy key scoped to gotd/homebrew-tap (HOMEBREW_TAP_DEPLOY_KEY) instead of a personal access token. The key and the secret are already set up.

Checked:

  • goreleaser check and a snapshot build with v2.20.2: Casks/tg.rb for macOS and Linux, amd64/arm64, with github.com/gotd/cli/releases/download/... URLs.
  • The snapshot cask installed on macOS arm64 with Homebrew 7.0.13 from a local tap (archive URLs swapped to file://): brew style clean, no deprecation warning, the downloaded archive is quarantined and the installed binary is not, tg --help runs, uninstall is clean.
  • The deploy key can push to the tap (git push --dry-run).

Not checked: GoReleaser's own push to the tap and an install from the real tap; both first run on the next release. Intel macOS was not tested.

Fixes #247

zamai and others added 2 commits November 16, 2026 15:19
Homebrew 7 deprecates the postflight stanza that the install hook
renders; install_steps (GoReleaser v2.19+) renders postflight_steps.

Publish to gotd/homebrew-tap over SSH with a write deploy key
(HOMEBREW_TAP_DEPLOY_KEY) instead of a personal access token.
@ernado
ernado merged commit 43f73ba into main Nov 16, 2026
4 checks passed
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.

install via brew: support for brew installation?

2 participants