@@ -7,20 +7,28 @@ class Cookcli < Formula
77 head "https://github.com/cooklang/cookcli.git" , branch : "main"
88
99 bottle do
10- sha256 cellar : :any_skip_relocation , arm64_tahoe : "99eb168fb0f24e936cc3c4f76123e7a965fafca79cd46577484ff7b41ab7425a"
11- sha256 cellar : :any_skip_relocation , arm64_sequoia : "0d946934fd0e9e3900e65003a2358c6a83b7ac50f4d64b228f55afad60409732"
12- sha256 cellar : :any_skip_relocation , arm64_sonoma : "ee3fd846b6259c9d98591356627c27ff1289752c0cf2c0d50c69b055f0543cb2"
13- sha256 cellar : :any_skip_relocation , sonoma : "1210a744226b5d8a1c3ee845fff148b44ad3f43453d14aa2e70a19d0d3f27cb7"
14- sha256 cellar : :any_skip_relocation , arm64_linux : "3bd324509be570513f99b7fd7612fca78f9fb6174672fa1fe3ea55887b3297f6"
15- sha256 cellar : :any_skip_relocation , x86_64_linux : "aa0f606df53567658253934322d581095af09b97572d5e1a7e4e9c48d97db52f"
10+ rebuild 1
11+ sha256 cellar : :any_skip_relocation , arm64_tahoe : "e5e65defee67a0ee63c160258efe4be11de3c6dc2579bb36ffd643d9d6e7f601"
12+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "e2576854282b401de53af4dfe376bcaf4158b84321832f35533239613644b289"
13+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "e22dc200115d03c6c740ddc0999af5c922769359ffde20ec8644554880fe3c3f"
14+ sha256 cellar : :any_skip_relocation , sonoma : "21e375ff5ce0543f5c2ff4f2cd6bf692e662283143502b660212206c1ef7cf31"
15+ sha256 cellar : :any_skip_relocation , arm64_linux : "dcbc736f43c625cecad757dc08a210a2c7b5a5e09aa5d4fcd4ef45a1b33152c9"
16+ sha256 cellar : :any_skip_relocation , x86_64_linux : "f8798ae9374d87462d6265a08220617ce4b9b5cdfc7975a72d3da97b65e152e0"
1617 end
1718
19+ depends_on "node" => :build
1820 depends_on "rust" => :build
1921 depends_on "openssl@3"
2022
2123 def install
2224 ENV [ "OPENSSL_NO_VENDOR" ] = "1"
2325 ENV [ "OPENSSL_DIR" ] = Formula [ "openssl@3" ] . opt_prefix
26+
27+ # Install npm dependencies and build CSS
28+ system "npm" , "install" , *std_npm_args ( prefix : false ) , "--ignore-scripts"
29+ system "npm" , "run" , "build-css"
30+
31+ # Build and install the binary
2432 system "cargo" , "install" , *std_cargo_args
2533 end
2634
0 commit comments