dev
sh 10 lines 320 Bytes
Raw
1 #!/bin/bash
2
3 docker run --platform linux/arm64 --rm \
4 -v "$PWD":/work -w /work dart:2.17 bash -c '
5 apt-get update &&
6 apt-get install -y protobuf-compiler &&
7 dart pub global activate protoc_plugin 20.0.1 &&
8 export PATH="$PATH:/root/.pub-cache/bin" &&
9 protoc --dart_out=grpc:./ ./lib/mwebd.proto
10 '