From 36310b97d9fbc042facb8a5acfda2f8d22727d91 Mon Sep 17 00:00:00 2001 From: Knowit Date: Sat, 18 Apr 2026 10:07:26 +0800 Subject: [PATCH] Simplify hook install: use precompiled binary directly --- README.md | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 7fa1d63..afcee82 100644 --- a/README.md +++ b/README.md @@ -14,17 +14,9 @@ cp claudeplus/commands/* ~/.claude/commands/ ### 安装 Stop Hook(token 用量自动备份) -需要先安装 Go: - ```bash -sudo apt install golang-go -y -``` - -编译并配置: - -```bash -cd claudeplus/hooks/token-stats-hook -go build -o ~/.claude/token-stats-hook-bin . +cp claudeplus/hooks/token-stats-hook/token-stats-hook-bin ~/.claude/token-stats-hook-bin +chmod +x ~/.claude/token-stats-hook-bin ``` 在 `~/.claude/settings.json` 中加入以下配置(如已有其他 hooks 注意合并):