mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Updated gen_protos
This commit is contained in:
parent
33d843937e
commit
2d59dc7d73
1 changed files with 5 additions and 5 deletions
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
# simple sanity checking for repo
|
||||
if [ ! -d "../Meshtastic-protobufs" ]; then
|
||||
echo "Please check out the https://github.com/meshtastic/Meshtastic-protobufs the parent directory."
|
||||
if [ ! -d "../protobufs/meshtastic" ]; then
|
||||
echo "Please check out the https://github.com/meshtastic/protobufs parent directory."
|
||||
exit
|
||||
fi
|
||||
|
||||
|
|
@ -12,15 +12,15 @@ if [ ! -x "`which protoc`" ]; then
|
|||
exit
|
||||
fi
|
||||
|
||||
pdir=$(realpath "../Meshtastic-protobufs")
|
||||
pdir=$(realpath "../protobufs/meshtastic")
|
||||
sdir=$(realpath "./Meshtastic/Protobufs")
|
||||
echo "pdir:$pdir sdir:$sdir"
|
||||
pfiles="admin.proto apponly.proto cannedmessages.proto channel.proto config.proto device_metadata.proto deviceonly.proto localonly.proto mesh.proto module_config.proto mqtt.proto portnums.proto remote_hardware.proto
|
||||
storeforward.proto telemetry.proto"
|
||||
pfiles="admin.proto apponly.proto cannedmessages.proto channel.proto config.proto device_metadata.proto deviceonly.proto localonly.proto mesh.proto module_config.proto mqtt.proto portnums.proto remote_hardware.proto rtttl.proto storeforward.proto telemetry.proto xmodem.proto"
|
||||
for pf in $pfiles
|
||||
do
|
||||
echo "Generating $pf..."
|
||||
protoc --swift_out=${sdir} --proto_path=${pdir} $pf
|
||||
echo protoc --swift_out=${sdir} --proto_path=${pdir} $pf
|
||||
done
|
||||
echo "Done generating the swift files from the proto files."
|
||||
echo "Build, test, and commit changes."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue