-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerate_protos.sh
executable file
·30 lines (24 loc) · 1.32 KB
/
generate_protos.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
mkdir -p src/generated/grpc
cd src/generated
svn checkout https://github.com/NetBlockGit/dns-server/trunk/protos \
--username=$GITPOD_GIT_USER_NAME --password=$GITHUB_TOKEN
protoc -I=. protos/blocker.proto \
--js_out=import_style=commonjs,binary:grpc \
--grpc-web_out=import_style=typescript,mode=grpcwebtext:grpc
protoc -I=. protos/toggleblocker/toggleblocker.proto \
--js_out=import_style=commonjs,binary:grpc \
--grpc-web_out=import_style=typescript,mode=grpcwebtext:grpc
protoc -I=. protos/getstats/getstats.proto \
--js_out=import_style=commonjs,binary:grpc \
--grpc-web_out=import_style=typescript,mode=grpcwebtext:grpc
protoc -I=. protos/getauthtoken/getauthtoken.proto \
--js_out=import_style=commonjs,binary:grpc \
--grpc-web_out=import_style=typescript,mode=grpcwebtext:grpc
protoc -I=. protos/updateupstreamdns/updateupstreamdns.proto \
--js_out=import_style=commonjs,binary:grpc \
--grpc-web_out=import_style=typescript,mode=grpcwebtext:grpc
protoc -I=. protos/getserverinfo/getserverinfo.proto \
--js_out=import_style=commonjs,binary:grpc \
--grpc-web_out=import_style=typescript,mode=grpcwebtext:grpc
rm -rf protos
cd -