forked from keepkey/python-keepkey
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_pb.sh
More file actions
Latest commit
executable file
·12 lines (10 loc) · 550 Bytes
/
Copy pathbuild_pb.sh
File metadata and controls
executable file
·12 lines (10 loc) · 550 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
CURDIR=$(pwd)
cd"device-protocol"
echo"Building with protoc version: $(protoc --version)"
foriin messages messages-ethereum messages-eos messages-nano messages-cosmos messages-ripple messages-binance messages-tendermint messages-thorchain messages-osmosis messages-mayachain types ;do
protoc --python_out=$CURDIR/keepkeylib/ -I/usr/include -I. $i.proto
i=${i/-/_}
sed -i -Ee 's/^import ([^.]+_pb2)/from . import \1/'$CURDIR/keepkeylib/"$i"_pb2.py
done
sed -i 's/5000\([2-5]\)/6000\1/g'$CURDIR/keepkeylib/types_pb2.py