Skip to content

Commit 56f50d0

Browse files
HavenDVclaude
andcommitted
Ad-hoc codesign macOS binaries + update README + cask version fix
- Add codesign --sign - step for macOS builds to prevent Gatekeeper blocks - Add version :latest to Homebrew cask - Update README to note Homebrew cask is macOS-only Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f2e5d37 commit 56f50d0

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/ttok.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name "ttok"
33
desc "The fastest CLI tool for counting, encoding, decoding, and exploring BPE tokens"
44
homepage "https://github.com/tryAGI/Tiktoken"
5+
version :latest
56

67
arch arm: "osx-arm64", intel: "osx-x64"
78

.github/workflows/native-cli.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ jobs:
117117
run: |
118118
echo Hello world | src\cli\Tiktoken.Cli\bin\Release\net10.0\${{ matrix.rid }}\publish\Tiktoken.Cli.exe
119119
120+
- name: Codesign binary (macOS)
121+
if: runner.os == 'macOS'
122+
run: codesign --sign - --force src/cli/Tiktoken.Cli/bin/Release/net10.0/${{ matrix.rid }}/publish/Tiktoken.Cli
123+
120124
- name: Prepare release binary (Linux/macOS)
121125
if: runner.os != 'Windows'
122126
run: |

src/cli/Tiktoken.Cli/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ The fastest .NET CLI tool for counting, encoding, decoding, and exploring BPE to
55
## Install
66

77
```bash
8-
# Homebrew (macOS/Linux)
8+
# Homebrew (macOS — always installs latest release)
99
brew install tryAGI/tap/ttok
1010

1111
# Shell script (macOS/Linux — auto-detects OS/arch)
1212
curl -fsSL https://raw.githubusercontent.com/tryAGI/Tiktoken/main/install.sh | sh
13+
# Recommended for Linux — Homebrew cask is macOS-only
1314

1415
# PowerShell (Windows — auto-detects arch)
1516
irm https://raw.githubusercontent.com/tryAGI/Tiktoken/main/install.ps1 | iex

0 commit comments

Comments
 (0)