diff --git a/Formula/cartesi.rb b/Formula/cartesi.rb index 2ed6d5f..9c604ee 100644 --- a/Formula/cartesi.rb +++ b/Formula/cartesi.rb @@ -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 @@ -17,14 +20,17 @@ class Cartesi < Formula sha256 cellar: :any_skip_relocation, arm64_tahoe: "127bc2adc8991539889558baa71b30bfb36ba0924e9d0ca2087e11e6fb7ec912" end + depends_on "cartesi-machine" + depends_on "cartesi-rollups-node" depends_on "node" + depends_on "xgenext2fs" 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