Skip to content

Commit 3cd7869

Browse files
BrewTestBotp-linnane
authored andcommitted
tweakcc 3.0.0
tweakcc: remove incompatible pre-built binaries Signed-off-by: Patrick Linnane <[email protected]>
1 parent 45a875f commit 3cd7869

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Formula/t/tweakcc.rb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class 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

0 commit comments

Comments
 (0)