mirror of
https://github.com/bisq-network/bisq-api-reference.git
synced 2026-05-02 09:20:13 +00:00
Simplify downloading .protos from other branches
Make it easier to download .proto files from different branches.
This commit is contained in:
parent
4b07d6db47
commit
2b05f9654f
@ -1,11 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Downloading Bisq protobuf files from github to $PROTO_PATH directory..."
|
# Download Bisq's protobuf definition files.
|
||||||
|
# Change the REPO_OWNER and REPO_BRANCH vars if you (developer) need to download from an alternative repo and branch.
|
||||||
|
|
||||||
|
REPO_OWNER="bisq-network"
|
||||||
|
REPO_BRANCH="master"
|
||||||
|
REPO_PROTO_DIR_URL="https://raw.githubusercontent.com/$REPO_OWNER/bisq/$REPO_BRANCH/proto/src/main/proto"
|
||||||
|
|
||||||
|
echo "Downloading Bisq protobuf files from $REPO_PROTO_DIR_URL to $PROTO_PATH directory..."
|
||||||
echo "You can skip this step and copy your own local .proto files instead."
|
echo "You can skip this step and copy your own local .proto files instead."
|
||||||
|
|
||||||
# Download the Bisq master branch's protobuf definition files.
|
curl -o ./pb.proto "$REPO_PROTO_DIR_URL"/pb.proto
|
||||||
curl -o ./pb.proto https://raw.githubusercontent.com/bisq-network/bisq/master/proto/src/main/proto/pb.proto
|
curl -o ./grpc.proto "$REPO_PROTO_DIR_URL"/grpc.proto
|
||||||
curl -o ./grpc.proto https://raw.githubusercontent.com/bisq-network/bisq/master/proto/src/main/proto/grpc.proto
|
|
||||||
|
|
||||||
echo "Copying proto files to the Java examples project."
|
echo "Copying proto files to the Java examples project."
|
||||||
cp -v *.proto ../java-examples/src/main/proto
|
cp -v *.proto ../java-examples/src/main/proto
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user