From 5fee465efca93f733ef0ecdafc7e196eecd9aecc Mon Sep 17 00:00:00 2001 From: Drew Smirnoff Date: Mon, 25 May 2026 13:24:40 +0400 Subject: [PATCH] chore: migrate goreleaser config (#1360) ## What? Migrates `brews` to `homebrew_casks`. THIS WILL LOSE SUPPORT FOR LINUX HOMEBREW ## Why? Since [goreleaser v2.1.6](https://github.com/goreleaser/goreleaser/releases/tag/v2.16.0) `brews` was fully depreciated --------- Signed-off-by: drew --- .goreleaser.yml | 40 +++++++++++++-------------------------- docs/docs/installation.md | 9 +-------- 2 files changed, 14 insertions(+), 35 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 8d8ee39105e66490bbc19d0249c6bdb3c6f35bf5..cceda730141f691c375e12a381c3540f78f98c3c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -126,42 +126,28 @@ nix: mkdir -p $out/bin cp -vr ./matcha $out/bin/matcha -# 'brews' configures the Homebrew tap integration. -brews: - - # The configuration for your Homebrew tap. - # The name of your formula file will be 'matcha.rb'. - name: matcha - # The GitHub repository for your Homebrew tap. +# 'homebrew_casks' configures the Homebrew tap integration. +# Migrated from deprecated 'brews' (goreleaser v2.12+). +# macOS-only; Linux users should use the Nix flake or snap. +homebrew_casks: + - name: matcha + binaries: [matcha] repository: owner: floatpane name: homebrew-matcha - # The token to use for pushing to the tap repository. - # It uses the secret you'll create in your repository settings. token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" - - # The commit author for the tap update. commit_author: name: Floatpane Bot email: us@floatpane.com - - # A description for your formula. description: "A beautiful and functional email client for your terminal." - # The homepage URL for your formula. homepage: "https://matcha.email" - - # The dependencies for your formula. - # Since it's a pre-compiled binary, there are no runtime dependencies. - dependencies: [] - - # The test block for your formula. - # This command will be run by `brew test matcha`. - test: | - system "#{bin}/matcha --version" - - # The installation instructions for your formula. - # This tells Homebrew to just install the binary. - install: | - bin.install "matcha" + # Strip Apple quarantine xattr so unsigned binary runs without Gatekeeper prompt. + hooks: + post: + install: | + if OS.mac? + system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/matcha"] + end # 'winget' configures the WinGet manifest generation and publication. winget: - # Name of the package in WinGet. diff --git a/docs/docs/installation.md b/docs/docs/installation.md index e3e7b658c8e19cd1696d225b1e2b749ebc925b24..b7d8bc9388cd23109df3351b6532c748a98f73e9 100644 --- a/docs/docs/installation.md +++ b/docs/docs/installation.md @@ -46,14 +46,7 @@ You can download pre-compiled binaries from the [Releases page](https://github.c ## 🐧 Linux -### 🍺 Homebrew - -You can also install Matcha on Linux via Homebrew. - -```bash -brew tap floatpane/matcha -brew install floatpane/matcha/matcha -``` +> Note: Homebrew support for Linux was [dropped](https://github.com/floatpane/matcha/pull/1360) (since matcha v0.40.0). You can still use Homebrew on Linux for nightly releases, but for stable releases, please use one of the other installation methods below. ### Snap