This repository has been archived by the owner on Sep 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ccc4d1a
commit 3a6ca53
Showing
3 changed files
with
22 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
class SorobanCli < Formula | ||
desc "CLI for interacting with and deploying to Soroban" | ||
desc "CLI for building for and interacting with the Stellar network" | ||
homepage "https://developers.stellar.org" | ||
url "https://github.com/stellar/soroban-cli.git", tag: "v20.3.4" | ||
head "https://github.com/stellar/soroban-cli.git", branch: "main" | ||
url "https://github.com/stellar/stellar-cli.git", tag: "v21.2.0" | ||
head "https://github.com/stellar/stellar-cli.git", branch: "main" | ||
|
||
depends_on "rust" => :build | ||
depends_on "openssl@3" | ||
|
||
def install | ||
chdir "cmd/soroban-cli" do | ||
system "cargo", "install", "--bin=soroban", *std_cargo_args | ||
system "cargo", "install", "--bin=soroban", "--features=opt", *std_cargo_args | ||
system "cargo", "install", "--bin=stellar", "--features=opt", *std_cargo_args | ||
end | ||
end | ||
|
||
test do | ||
assert_match "soroban 20.3.4", shell_output("#{bin}/soroban version") | ||
assert_match "stellar 21.2.0", shell_output("#{bin}/soroban version") | ||
assert_match "stellar 21.2.0", shell_output("#{bin}/stellar version") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
class StellarXdr < Formula | ||
desc "CLI for encoding and decoding Stellar XDR" | ||
homepage "https://github.com/stellar/rs-stellar-xdr" | ||
url "https://github.com/stellar/rs-stellar-xdr.git", tag: "v20.0.0" | ||
url "https://github.com/stellar/rs-stellar-xdr.git", tag: "v21.2.0" | ||
head "https://github.com/stellar/rs-stellar-xdr.git", branch: "main" | ||
|
||
depends_on "rust" => :build | ||
|
||
def install | ||
system "cargo", "install", "--features=cli", *std_cargo_args | ||
system "cargo", "install", "--bin=stellar-xdr", "--features=cli", *std_cargo_args | ||
end | ||
|
||
test do | ||
assert_match "stellar-xdr 20.0.0", shell_output("#{bin}/stellar-xdr version") | ||
assert_match "stellar-xdr 21.2.0", shell_output("#{bin}/stellar-xdr version") | ||
end | ||
end |