From f5122205645ee48e6bb756789f4699f8b2dca68d Mon Sep 17 00:00:00 2001 From: root <1561515308@qq.com> Date: Sat, 30 Mar 2024 10:39:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pmpt/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pmpt/util.py b/pmpt/util.py index 27ba6cb..554538c 100644 --- a/pmpt/util.py +++ b/pmpt/util.py @@ -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()