From e2bd5c72ed01d35b8319aa484f60988b27375dd8 Mon Sep 17 00:00:00 2001 From: jackspirou Date: Thu, 10 Sep 2026 17:43:54 -0500 Subject: [PATCH] fix: update Homebrew installation and package trust --- .goreleaser.yaml | 18 ++++++++++-------- README.md | 9 ++++++--- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 1d8ea5b..ae82afa 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -122,7 +122,8 @@ release: #### Homebrew (macOS and Linux) ```bash - brew install agentstation/tap/tokenizer + brew trust --cask agentstation/tap/tokenizer + brew install --cask agentstation/tap/tokenizer ``` #### Docker @@ -188,15 +189,16 @@ homebrew_casks: license: "MIT" # Binary name (extracted from archive) - binary: tokenizer + binaries: + - tokenizer # Post-install hook for unsigned binaries (macOS) - hooks: - post: - install: | - if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0 - system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/tokenizer"], sudo: false - end + custom_block: | + postflight_steps do + on_macos do + run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{ "{{staged_path}}" }}/tokenizer"], sudo: false + end + end # Shell completions (files included in the archive) completions: diff --git a/README.md b/README.md index fb5836f..e67c353 100644 --- a/README.md +++ b/README.md @@ -15,14 +15,16 @@ A collection of high-performance tokenizer implementations in Go with a unified ### Using Homebrew (Recommended for macOS/Linux) ```bash -brew install agentstation/tap/tokenizer +brew trust --cask agentstation/tap/tokenizer +brew install --cask agentstation/tap/tokenizer ``` Or tap the repository first: ```bash brew tap agentstation/tap -brew install tokenizer +brew trust --cask agentstation/tap/tokenizer +brew install --cask agentstation/tap/tokenizer ``` ### Download Binary @@ -107,7 +109,8 @@ go get github.com/agentstation/tokenizer/llama3 ```bash # Install via Homebrew -brew install agentstation/tap/tokenizer +brew trust --cask agentstation/tap/tokenizer +brew install --cask agentstation/tap/tokenizer # Encode text (simple, intuitive) tokenizer llama3 "Hello, world!"