Problem
macOS Gatekeeper quarantines downloaded binaries with com.apple.quarantine extended attribute, showing "developer cannot be verified" warnings. Users must run xattr -d com.apple.quarantine manually or go through System Settings.
Solution: Homebrew Formula
Homebrew automatically removes the quarantine attribute during installation via brew install. This provides the best macOS UX and is the standard distribution method for CLI developer tools.
Implementation Plan
Option A: Homebrew Core (Long-term)
Submit to homebrew/core after repository meets notability requirements (30+ forks, 75+ watchers).
Option B: Custom Tap (Immediate - RECOMMENDED)
Create thunderbyte-labs/homebrew-tap repository and host formula there.
Formula structure (thin-wrap.rb):
class ThinWrap < Formula
desc "Thin cross-platform terminal-based chat application for LLM APIs"
homepage "https://github.com/thunderbyte-labs/thin-wrap"
version "0.1"
if Hardware::CPU.intel?
url "https://github.com/thunderbyte-labs/thin-wrap/releases/download/v0.1/thin-wrap-Darwin-x86_64.zip"
sha256 "PLACEHOLDER_SHA256_INTEL"
else
url "https://github.com/thunderbyte-labs/thin-wrap/releases/download/v0.1/thin-wrap-Darwin-arm64.zip"
sha256 "PLACEHOLDER_SHA256_ARM64"
end
def install
bin.install "thin-wrap"
prefix.install "config.json" if File.exist?("config.json")
end
def caveats
<<~EOS
Configuration files are stored in ~/.config/thin-wrap/ (XDG standard)
To get started: thin-wrap --help
EOS
end
test do
system "#{bin}/thin-wrap", "--version"
end
end
Repository Structure for Tap
thunderbyte-labs/homebrew-tap/
├── README.md
├── Formula/
│ └── thin-wrap.rb
└── .github/workflows/ (optional auto-update)
Acceptance Criteria
Benefits
- No Gatekeeper warnings - Homebrew handles quarantine removal
- Automatic updates - brew upgrade thin-wrap
- Standard UX - macOS developers expect brew install
- PATH handled automatically - Homebrew links to /opt/homebrew/bin or /usr/local/bin
References
Priority: Medium-High
Effort: ~2 hours initial setup, 5 minutes per release thereafter
Labels: enhancement, macOS, packaging, good-first-issue
Problem
macOS Gatekeeper quarantines downloaded binaries with com.apple.quarantine extended attribute, showing "developer cannot be verified" warnings. Users must run xattr -d com.apple.quarantine manually or go through System Settings.
Solution: Homebrew Formula
Homebrew automatically removes the quarantine attribute during installation via brew install. This provides the best macOS UX and is the standard distribution method for CLI developer tools.
Implementation Plan
Option A: Homebrew Core (Long-term)
Submit to homebrew/core after repository meets notability requirements (30+ forks, 75+ watchers).
Option B: Custom Tap (Immediate - RECOMMENDED)
Create thunderbyte-labs/homebrew-tap repository and host formula there.
Formula structure (thin-wrap.rb):
class ThinWrap < Formula
desc "Thin cross-platform terminal-based chat application for LLM APIs"
homepage "https://github.com/thunderbyte-labs/thin-wrap"
version "0.1"
if Hardware::CPU.intel?
url "https://github.com/thunderbyte-labs/thin-wrap/releases/download/v0.1/thin-wrap-Darwin-x86_64.zip"
sha256 "PLACEHOLDER_SHA256_INTEL"
else
url "https://github.com/thunderbyte-labs/thin-wrap/releases/download/v0.1/thin-wrap-Darwin-arm64.zip"
sha256 "PLACEHOLDER_SHA256_ARM64"
end
def install
bin.install "thin-wrap"
prefix.install "config.json" if File.exist?("config.json")
end
def caveats
<<~EOS
Configuration files are stored in ~/.config/thin-wrap/ (XDG standard)
To get started: thin-wrap --help
EOS
end
test do
system "#{bin}/thin-wrap", "--version"
end
end
Repository Structure for Tap
thunderbyte-labs/homebrew-tap/
├── README.md
├── Formula/
│ └── thin-wrap.rb
└── .github/workflows/ (optional auto-update)
Acceptance Criteria
Benefits
References
Priority: Medium-High
Effort: ~2 hours initial setup, 5 minutes per release thereafter
Labels: enhancement, macOS, packaging, good-first-issue