修改actions上传名称,修改编译时依赖的python脚本

This commit is contained in:
2021-08-09 07:10:40 +08:00
parent 20cd27d7f6
commit a71b504589
5 changed files with 75 additions and 25 deletions

11
.github/workflows/getVersion.py vendored Normal file
View File

@@ -0,0 +1,11 @@
import re
def getVersion():
with open("conf.lua", "r", encoding="utf-8") as file:
data = file.read()
versionCode = re.search("build=(\\d+)", data).group()
versionName = re.search('(?<=string=").*(?=@)', data).group()
return versionCode, versionName
if __name__ == "__main__":
versionCode, versionName = getVersion()
print (versionName)