Skip to content

Commit

Permalink
feat: cartesi tap
Browse files Browse the repository at this point in the history
  • Loading branch information
tuler committed May 1, 2024
1 parent afa85d3 commit aef54df
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
12 changes: 6 additions & 6 deletions Formula/sunodo.rb → Formula/cartesi.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
require "language/node"

class Sunodo < Formula
desc "Sunodo CLI"
homepage "https://github.com/sunodo/sunodo"
url "https://registry.npmjs.org/@sunodo/cli/-/cli-0.13.1.tgz"
sha256 "8e87db4970503df6f13b9b9a3dd05cc81eba182cf9464dbaebcb48f9ee064cf6"
class Cartesi < Formula
desc "Cartesi CLI"
homepage "https://github.com/cartesi/cli"
url "https://registry.npmjs.org/@cartesi/cli/-/cli-0.14.0.tgz"
sha256 "81333a40e9a982cac90d219127f2faaa7a3e44f5cbb910aef96dcc313a89e56f"
license "Apache-2.0"

livecheck do
Expand All @@ -18,7 +18,7 @@ def install
bin.install_symlink Dir["#{libexec}/bin/*"]

# use node installed by the "node" formula instead of the PATH one
inreplace libexec/"lib/node_modules/@sunodo/cli/bin/run.js", "#!/usr/bin/env node", "#!#{Formula["node"].opt_bin}/node"
inreplace libexec/"lib/node_modules/@cartesi/cli/bin/run.js", "#!/usr/bin/env node", "#!#{Formula["node"].opt_bin}/node"
end

test do
Expand Down
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# Sunodo Homebrew Tap

Install the Sunodo CLI with:
# Cartesi Homebrew Tap

```shell
brew tap sunodo/tap
brew install sunodo
brew tap cartesi/tap
```

For more information, visit https://docs.sunodo.io
For more information, visit https://docs.cartesi.io
2 changes: 1 addition & 1 deletion scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
set -ex

brew update
brew install Formula/sunodo.rb
brew install Formula/cartesi.rb
sunodo --help

0 comments on commit aef54df

Please sign in to comment.