mautrix-signal/pkg/signalmeow/protobuf/build-protos.sh
2024-08-13 01:23:43 +03:00

11 lines
303 B
Bash
Executable file

#!/bin/sh
PKG_IMPORT_PATH="go.mau.fi/mautrix-signal/pkg/signalmeow/signalpb"
for file in *.proto
do
# Requires https://go-review.googlesource.com/c/protobuf/+/369634
protoc --go_out=. \
--go_opt=M${file}=$PKG_IMPORT_PATH \
--go_opt=paths=source_relative \
--go_opt=embed_raw=true \
$file
done