Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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!"
Expand Down
Loading