upm_guru_dof_lib/Makefile

26 lines
638 B
Makefile
Raw Normal View History

2023-09-06 02:11:12 +00:00
Version=0.0.1
Branch=main
#------------- 命令部分 ----------------
# make publish
# 发布upm版本, 版本号和分支需要提前配置
2023-09-06 02:09:53 +00:00
publish: set_version
git switch ${Branch}
git tag ${Version}
2023-09-06 02:11:12 +00:00
git push --tags
# make build
# 更新proto结构, 生成对应的cs类, 需要先安装proto工具并建立系统路径
build:
2023-09-05 08:52:19 +00:00
cd ./Runtime/ServerProto; \
2023-09-06 02:02:48 +00:00
protogen messages.proto --csharp_out=../NetworkGen
# 更新版本
set_version:
2023-09-06 02:09:53 +00:00
git switch ${Branch}
2023-09-06 02:02:48 +00:00
# python3 helper.py package.json ${Version}
python3 helper.py set_ver --path ./package.json --ver ${Version}
2023-09-06 02:09:53 +00:00
git commit . -m "publish version to ${Version}"
2023-09-06 02:11:12 +00:00
git push