File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 11class Tweakcc < Formula
22 desc "Customize your Claude Code themes, thinking verbs, and more"
33 homepage "https://github.com/Piebald-AI/tweakcc"
4- url "https://registry.npmjs.org/tweakcc/-/tweakcc-2 .0.3 .tgz"
5- sha256 "43d64a758edd3fdbe2e14676baaa7ca8c2c2fa475509bd775730fa30b15e5d7d "
4+ url "https://registry.npmjs.org/tweakcc/-/tweakcc-3 .0.0 .tgz"
5+ sha256 "3b708eb0a9376da92c36fb8d84126ebe33e4458e8c9b2a598ef2dcd4ed88051e "
66 license "MIT"
77
88 bottle do
@@ -19,6 +19,14 @@ class Tweakcc < Formula
1919 def install
2020 system "npm" , "install" , *std_npm_args
2121 bin . install_symlink Dir [ "#{ libexec } /bin/*" ]
22+
23+ # Remove incompatible pre-built binaries
24+ os = OS . kernel_name . downcase
25+ arch = Hardware ::CPU . intel? ? "x64" : Hardware ::CPU . arch . to_s
26+ node_modules = libexec /"lib/node_modules/tweakcc/node_modules"
27+ ( node_modules /"node-lief/prebuilds/linux-x64/node-lief.musl.node" ) . unlink
28+ libexec . glob ( "#{ node_modules } /node-lief/prebuilds/*" )
29+ . each { |dir | rm_r ( dir ) if dir . basename . to_s != "#{ os } -#{ arch } " }
2230 end
2331
2432 test do
You can’t perform that action at this time.
0 commit comments