Sha256: 787ddc94910d81919c7a390e35237189e8843c65e9129df50e05a387278a9bd5
Contents?: true
Size: 628 Bytes
Versions: 70
Compression:
Stored size: 628 Bytes
Contents
#!/bin/bash --login mesh_root='/opt/meshtastic' mesh_protobufs_root="${mesh_root}/protobufs" mesh_protobufs_out='/opt/meshtastic/lib' sudo apt install protobuf-compiler mkdir -p $mesh_protobufs_out if [[ ! -d $mesh_root ]]; then sudo mkdir -p $mesh_root sudo chown $USER:$USER $mesh_root fi cd $mesh_root if [[ ! -d $mesh_protobufs_root ]]; then sudo git clone https://github.com/meshtastic/protobufs fi cd $mesh_protobufs_root sudo protoc --proto_path=. --ruby_out=$mesh_protobufs_out nanopb.proto ./meshtastic/*.proto if (( $? == 0 )); then echo "Updated meshtastic protobufs reside in ${mesh_protobufs_out}" fi
Version data entries
70 entries across 70 versions & 1 rubygems