fix(core): 修复版本号问题

This commit is contained in:
DLmaster
2025-04-12 19:03:39 +08:00
parent cb17cc32da
commit c8b342ba01
25 changed files with 38 additions and 29 deletions

View File

@@ -21,7 +21,7 @@
"""
AUTO_MAA
AUTO_MAA工具包
v4.2
v4.3
作者DLmaster_361
"""

View File

@@ -53,6 +53,9 @@ from typing import List, Dict, Union
def version_text(version_numb: list) -> str:
"""将版本号列表转为可读的文本信息"""
while len(version_numb) < 4:
version_numb.append(0)
if version_numb[3] == 0:
version = f"v{'.'.join(str(_) for _ in version_numb[0:3])}"
else:

View File

@@ -21,7 +21,7 @@
"""
AUTO_MAA
AUTO_MAA打包程序
v4.2
v4.3
作者DLmaster_361
"""
@@ -35,6 +35,9 @@ from pathlib import Path
def version_text(version_numb: list) -> str:
"""将版本号列表转为可读的文本信息"""
while len(version_numb) < 4:
version_numb.append(0)
if version_numb[3] == 0:
version = f"v{'.'.join(str(_) for _ in version_numb[0:3])}"
else: