Skip to content

Commit

Permalink
Install stellar and soroban CLIs when installing either (#1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch authored May 31, 2024
1 parent 082dac9 commit 2994d95
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ endif
install_rust: install

install:
cargo install --locked --path ./cmd/soroban-cli --debug
cargo install --locked --path ./cmd/stellar-cli --debug
cargo install --locked --path ./cmd/crates/soroban-test/tests/fixtures/hello --root ./target --debug --quiet
cargo install --force --locked --path ./cmd/stellar-cli --debug
cargo install --force --locked --path ./cmd/crates/soroban-test/tests/fixtures/hello --root ./target --debug --quiet

# regenerate the example lib in `cmd/crates/soroban-spec-typsecript/fixtures/ts`
build-snapshot: typescript-bindings-fixtures
Expand Down
4 changes: 4 additions & 0 deletions cmd/soroban-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ rust-version.workspace = true
autobins = false
default-run = "soroban"

[[bin]]
name = "stellar"
path = "src/bin/main.rs"

[[bin]]
name = "soroban"
path = "src/bin/main.rs"
Expand Down
4 changes: 4 additions & 0 deletions cmd/stellar-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ default-run = "stellar"
name = "stellar"
path = "src/bin/main.rs"

[[bin]]
name = "soroban"
path = "src/bin/main.rs"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ version }-{ target }{ archive-suffix }"
bin-dir = "{ bin }{ binary-ext }"
Expand Down

0 comments on commit 2994d95

Please sign in to comment.