## 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 <me@andrinoff.com>
@@ -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.
@@ -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