Skip to content

Commit

Permalink
🎨增加客户端版本输出;更新版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
bensonhome committed Jul 16, 2024
1 parent f32bef1 commit 8ba50b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions client/codepuppy.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def __init__(self):
self._params = CmdArgParser.parse_args()
# 日志输出设置
self.__setup_logger()
# 打印版本信息
self.__print_client_version()

if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'):
LogPrinter.info('running in a PyInstaller bundle')
Expand All @@ -49,6 +51,12 @@ def __init__(self):
# 默认git配置
GitConfig.set_default_config()

def __print_client_version(self):
"""打印TCA客户端版本信息"""
LogPrinter.info("=" * 39)
LogPrinter.info(f"*** TCA Client v{settings.VERSION}({settings.EDITION.name} Beta) ***")
LogPrinter.info("=" * 39)

def __setup_logger(self):
"""日志打印配置
Expand Down
2 changes: 1 addition & 1 deletion client/settings/edition.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ class Edition(Enum):
# 版本号
# ========================
# puppy版本号,格式:浮点数,整数部分为8位日期,小数部分为编号(从1开始)
VERSION = 20220907.1
VERSION = 20240716.1

0 comments on commit 8ba50b4

Please sign in to comment.