diff --git a/Makefile b/Makefile index 38a62d0..db5b8ae 100644 --- a/Makefile +++ b/Makefile @@ -5,15 +5,8 @@ Branch=main #------------- 命令部分 ---------------- # make publish # 发布upm版本, 版本号和分支需要提前配置 -publish: +publish: set_version git switch ${Branch} - - set_version - - git commit . -m "publish version to ${Version}" - # git push - - git tag ${Version} # git push --tags @@ -25,5 +18,8 @@ build: # 更新版本 set_version: + git switch ${Branch} # python3 helper.py package.json ${Version} python3 helper.py set_ver --path ./package.json --ver ${Version} + git commit . -m "publish version to ${Version}" + # git push diff --git a/package.json b/package.json index fffcf87..1c68f77 100644 --- a/package.json +++ b/package.json @@ -1,11 +1 @@ -{ - "name": "com.guru.unity.gurudoflib", - "displayName": "GuruDofLib", - "version": "0.0.1", - "description": "基于Guru kcp库实现的客户端接口封装", - "unity": "2020.3", - "license": "MIT", - "category": "Game tool", - "dependencies": { - } -} \ No newline at end of file +{"name": "com.guru.unity.gurudoflib", "displayName": "GuruDofLib", "version": "0.0.2", "description": "\u57fa\u4e8eGuru kcp\u5e93\u5b9e\u73b0\u7684\u5ba2\u6237\u7aef\u63a5\u53e3\u5c01\u88c5", "unity": "2020.3", "license": "MIT", "category": "Game tool", "dependencies": {}} \ No newline at end of file