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:
Matthew Davies 2024-03-28 21:31:37 -07:00
parent f2f22fcd10
commit 36ba2e4508
No known key found for this signature in database
GPG key ID: 4B0314C2EFD91AC7
2 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -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