更新版本号
This commit is contained in:
parent
3a9aa8b760
commit
f512220564
|
@ -10,7 +10,8 @@ dirs = PlatformDirs("PMPT", "MoYan")
|
||||||
IndexList = []
|
IndexList = []
|
||||||
def getVer():
|
def getVer():
|
||||||
s = os.popen('git describe --tags').read()
|
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
|
return baseVar
|
||||||
|
|
||||||
__version__ = getVer()
|
__version__ = getVer()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user