update: 添加基础的makefile - for mac

main
huyufei 2023-09-05 14:46:03 +08:00
parent af7b0ee207
commit 6da8300668
1 changed files with 17 additions and 0 deletions

17
Makefile Normal file
View File

@ -0,0 +1,17 @@
Version=0.0.1
Branch=main
#------------- 命令部分 ----------------
# make publish
# 发布upm版本, 版本号和分支需要提前配置
publish:
git switch ${Branch}
git tag ${Version}
git push --tags
# make build
# 更新proto结构, 生成对应的cs类, 需要先安装proto工具并建立系统路径
build:
cd ./Runtime/ServerProto
protogen messages.proto --csharp_out=../NetworkGen