Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions Formula/cartesi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
class Cartesi < Formula
desc "CLI for developing Cartesi applications"
homepage "https://github.com/cartesi/cli"
url "https://registry.npmjs.org/@cartesi/cli/-/cli-1.5.0.tgz"
sha256 "2784f62fbb458c0b1d6cf99396fbbaa7be561e27849822944ba58974e7f44e9b"
url "https://registry.npmjs.org/@cartesi/cli/-/cli-2.0.0-alpha.38.tgz"
sha256 "08f650f78d29cb8e1716bc1648e0918b95c4529f5416a1579f2c1fc969fc4c66"
license "Apache-2.0"

livecheck do
url :stable
url "https://registry.npmjs.org/@cartesi/cli"
strategy :json do |json|
json.dig("dist-tags", "alpha")
end
end

bottle do
Expand All @@ -17,14 +20,17 @@
sha256 cellar: :any_skip_relocation, arm64_tahoe: "127bc2adc8991539889558baa71b30bfb36ba0924e9d0ca2087e11e6fb7ec912"
end

depends_on "cartesi-machine"

Check warning on line 23 in Formula/cartesi.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-26)

cartesi: new dependency impact

Adding `cartesi-machine` adds 3 new recursive dependencies on arm64_tahoe (768.8MB).

Check warning on line 23 in Formula/cartesi.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-15)

cartesi: new dependency impact

Adding `cartesi-machine` adds 3 new recursive dependencies on arm64_sequoia (768.8MB).
depends_on "cartesi-rollups-node"

Check warning on line 24 in Formula/cartesi.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-26)

cartesi: new dependency impact

Adding `cartesi-rollups-node` adds 1 new recursive dependency on arm64_tahoe (182MB).

Check warning on line 24 in Formula/cartesi.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-15)

cartesi: new dependency impact

Adding `cartesi-rollups-node` adds 1 new recursive dependency on arm64_sequoia (182MB).
depends_on "node"
depends_on "xgenext2fs"

Check warning on line 26 in Formula/cartesi.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-26)

cartesi: new dependency impact

Adding `xgenext2fs` adds 3 new recursive dependencies on arm64_tahoe (4.3MB).

Check warning on line 26 in Formula/cartesi.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-15)

cartesi: new dependency impact

Adding `xgenext2fs` adds 3 new recursive dependencies on arm64_sequoia (4.3MB).

def install
system "npm", "install", *std_npm_args
bin.install_symlink Dir["#{libexec}/bin/*"]

# use node installed by the "node" formula instead of the PATH one
inreplace libexec/"lib/node_modules/@cartesi/cli/bin/run.js", "#!/usr/bin/env node",
inreplace libexec/"lib/node_modules/@cartesi/cli/dist/index.js", "#!/usr/bin/env node",
"#!#{formula_opt_bin("node")}/node"
end

Expand Down
Loading