mirror of
https://github.com/bisq-network/bisq-api-reference.git
synced 2026-05-01 09:10:12 +00:00
Merge pull request #11 from bisq-network/make-proto-downloader-runnable-from-any-dir
Make proto downloader and python setup script runnable from any dir
This commit is contained in:
commit
0b830cd09b
@ -7,6 +7,10 @@ REPO_OWNER="bisq-network"
|
|||||||
REPO_BRANCH="master"
|
REPO_BRANCH="master"
|
||||||
REPO_PROTO_DIR_URL="https://raw.githubusercontent.com/$REPO_OWNER/bisq/$REPO_BRANCH/proto/src/main/proto"
|
REPO_PROTO_DIR_URL="https://raw.githubusercontent.com/$REPO_OWNER/bisq/$REPO_BRANCH/proto/src/main/proto"
|
||||||
|
|
||||||
|
# Get the script directory (relative to the current directory), cd into the directory, use pwd to get the absolute path.
|
||||||
|
export SCRIPT_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
|
||||||
|
cd "$SCRIPT_DIR"
|
||||||
|
|
||||||
echo "Downloading Bisq protobuf files from $REPO_PROTO_DIR_URL to $PROTO_PATH directory..."
|
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."
|
||||||
|
|
||||||
|
|||||||
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
# This script must be run from this directory.
|
# This script must be run from this directory.
|
||||||
|
|
||||||
|
# Get the script directory (relative to the current directory), cd into the directory, use pwd to get the absolute path.
|
||||||
|
export SCRIPT_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
|
||||||
|
cd "$SCRIPT_DIR"
|
||||||
|
|
||||||
####################################################################################
|
####################################################################################
|
||||||
# Install python3-venv if necessary.
|
# Install python3-venv if necessary.
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user