update claude-code

This commit is contained in:
YuanHui
2025-07-16 18:59:24 +08:00
parent dcab12339a
commit 12885db4a3

View File

@@ -17,11 +17,10 @@ class ClaudeCode < Formula
def install
# Install the package globally within the Homebrew prefix
system "npm", "install", "-g", "--prefix", prefix, "@anthropic-ai/claude-code@#{version}"
# 为 ripgrep.node 文件的头部增加填充(padding)。
# 这会给 Homebrew 自动修复链接时预留出足够的空间。
# 我们使用 prefix 变量来确保我们操作的是安装目录中的文件。
end
def post_install
MachO::Tools.header_pad(prefix/"lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-darwin/ripgrep.node")
end
test do