mirror of
https://github.com/brianshea2/meshmap.net.git
synced 2024-11-09 23:24:09 -08:00
17 lines
620 B
Bash
17 lines
620 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
docker run \
|
||
|
--rm \
|
||
|
-v "$(cd "$(dirname "$0")"; pwd)/..":/data \
|
||
|
golang \
|
||
|
bash -c "
|
||
|
apt-get update &&
|
||
|
apt-get install -y protobuf-compiler patch &&
|
||
|
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest &&
|
||
|
cd /tmp &&
|
||
|
git clone --progress --depth 1 https://github.com/meshtastic/protobufs.git &&
|
||
|
patch -p1 < /data/patch/remove-nanopb.patch &&
|
||
|
rm -rf /data/internal/meshtastic/generated &&
|
||
|
protoc -I=protobufs --go_out=/data/internal/meshtastic --go_opt=module=github.com/meshtastic/go protobufs/meshtastic/*.proto
|
||
|
"
|