-
Notifications
You must be signed in to change notification settings - Fork 21
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
7b99e3a
commit 1bad90a
Showing
3 changed files
with
338 additions
and
265 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/bash | ||
|
||
version=$(cargo metadata --format-version 1 | jq -r '.packages[] | select(.name=="soroban-rpc") | .version') | ||
cargo package \ | ||
--no-verify \ | ||
--package soroban-rpc \ | ||
--config "source.crates-io.replace-with = 'vendored-sources'" \ | ||
--config "source.vendored-sources.directory = 'vendor'" | ||
path="target/package/soroban-rpc-${version}.crate" | ||
tar xvfz "$path" -C vendor/ | ||
# Crates in the vendor directory require a checksum file, but it doesn't | ||
# matter if it is empty. | ||
echo '{"files":{}}' > vendor/$name-$version/.cargo-checksum.json |
Oops, something went wrong.