mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Update readme to include better info about protos submodule init
Update gen_protos.sh to check the proper directory and echo the command
This commit is contained in:
parent
f2f22fcd10
commit
36ba2e4508
2 changed files with 6 additions and 3 deletions
|
|
@ -28,6 +28,9 @@ SwiftUI client applications for iOS, iPadOS and macOS.
|
|||
brew install swift-protobuf
|
||||
```
|
||||
- check out the latest protobuf commit from the master branch
|
||||
```bash
|
||||
git submodule update --init
|
||||
```
|
||||
- run:
|
||||
```bash
|
||||
./gen_proto.sh
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
# simple sanity checking for repo
|
||||
if [ ! -d "../protobufs" ]; then
|
||||
echo "Please check out the protobuf submodule by running: `git submodule update --init`"
|
||||
if [ ! -d "./protobufs" ]; then
|
||||
echo 'Please check out the protobuf submodule by running: `git submodule update --init`'
|
||||
exit
|
||||
fi
|
||||
|
||||
# simple sanity checking for executable
|
||||
if [ ! -x "$(which protoc)" ]; then
|
||||
echo "Please install swift-protobuf by running: brew install swift-protobuf"
|
||||
echo 'Please install swift-protobuf by running: `brew install swift-protobuf`'
|
||||
exit
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue