Sha256: f35157d6793afc34b88ef8b0ab04d297b73b9a0892ad661b8e17a7b05ee25358
Contents?: true
Size: 615 Bytes
Versions: 9
Compression:
Stored size: 615 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 ./meshtastic/*.proto if (( $? == 0 )); then echo "Updated meshtastic protobufs reside in ${mesh_protobufs_out}" fi
Version data entries
9 entries across 9 versions & 1 rubygems