1
0

contrib: add generate_payreqpb2.sh script

This commit is contained in:
yanmaani
2021-12-10 12:00:00 +00:00
parent 2da1859110
commit 04b81d6b82
2 changed files with 14 additions and 2 deletions

13
contrib/generate_payreqpb2.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
# Generates the file paymentrequest_pb2.py
CONTRIB="$(dirname "$(readlink -e "$0")")"
EL="$CONTRIB"/../electrum
if ! which protoc > /dev/null 2>&1; then
echo "Please install 'protoc'"
echo "If you're on Debian, try 'sudo apt install protobuf-compiler'?"
exit 1
fi
protoc --proto_path="$EL" --python_out="$EL" "$EL"/paymentrequest.proto