Mac下导出protobuf协议到c#文件

来源:互联网 发布:淘宝高颜值零食店铺 编辑:程序博客网 时间:2024/05/16 15:55

本来以为在mac上导出protobuf会很麻烦,查了一下资料,发现都是几分钟的事。

相关的工具都可以在protogen找到。

加上一个批处理shell脚本

#!/bin/shfilelist=`ls /Users/x/Documents/Proto/protogen-master/test/*.proto`for file in $filelistdoecho $filemono /Users/x/Documents/Proto/protogen-master/bin/protogen.exe -i:$file -o:${file%.*}.csdone


0 0
原创粉丝点击