veilidchat/build.sh
Christien Rioux ab4f05a347 fix build
2024-05-09 10:54:52 -05:00

12 lines
498 B
Bash
Executable File

#!/bin/bash
set -e
pushd packages/veilid_support > /dev/null
./build.sh
popd > /dev/null
dart run build_runner build --delete-conflicting-outputs
protoc --dart_out=lib/proto -I packages/veilid_support/lib/proto -I packages/veilid_support/lib/dht_support/proto -I lib/proto veilidchat.proto
sed -i '' 's/dht.pb.dart/package:veilid_support\/proto\/dht.pb.dart/g' lib/proto/veilidchat.pb.dart
sed -i '' 's/veilid.pb.dart/package:veilid_support\/proto\/veilid.pb.dart/g' lib/proto/veilidchat.pb.dart