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:
Stan 2022-07-05 08:50:32 -03:00 committed by GitHub
commit 0b830cd09b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -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."

View File

@ -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.
#################################################################################### ####################################################################################