Skip to content

Commit 1f3ff7e

Browse files
committed
Allow Intel macOS source install
1 parent 4ee166c commit 1f3ff7e

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

Formula/zeroclaw.rb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ class Zeroclaw < Formula
66
license any_of: ["MIT", "Apache-2.0"]
77

88
on_macos do
9-
depends_on arch: :arm64
10-
119
on_arm do
1210
url "https://github.com/zeroclaw-labs/zeroclaw/releases/download/v0.8.1/zeroclaw-aarch64-apple-darwin.tar.gz"
1311
sha256 "d37c15aba3e4e6ec622d305b3d36172964a1239245704fb758e1d01560362841"
1412
end
13+
14+
on_intel do
15+
depends_on "rust" => :build
16+
end
1517
end
1618

1719
on_linux do
@@ -25,6 +27,12 @@ class Zeroclaw < Formula
2527
end
2628

2729
def install
30+
if File.exist?("Cargo.toml")
31+
system "cargo", "install", *std_cargo_args(path: ".")
32+
system "cargo", "install", *std_cargo_args(path: "apps/zerocode")
33+
return
34+
end
35+
2836
libexec.install "zeroclaw"
2937
libexec.install "zerocode"
3038
libexec.install "web" if Dir.exist?("web")

0 commit comments

Comments
 (0)