更新版本号

This commit is contained in:
root 2024-03-30 10:39:26 +08:00
parent 3a9aa8b760
commit f512220564

View File

@ -10,7 +10,8 @@ dirs = PlatformDirs("PMPT", "MoYan")
IndexList = []
def getVer():
s = os.popen('git describe --tags').read()
baseVar = s.split('v')[1] + '_' + os.environ.get('GITHUB_RUN_ID', str(int(time.time()))[:6])
print(s)
baseVar = s.split('v')[1].split('-')[0] + '_' + os.environ.get('GITHUB_RUN_ID', str(int(time.time()))[:6])
return baseVar
__version__ = getVer()