Files
pqAutomationApp/app_version.py
2026-06-11 15:53:41 +08:00

15 lines
440 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
APP_NAME = "PQ 自动化测试工具"
APP_VERSION = "106.26.0.0"
def is_beta_version(version: str = APP_VERSION) -> bool:
"""版本号第3、4段均为 '0' 时(格式 x.x.0.x判定为测试版。"""
parts = version.split(".")
if len(parts) >= 4:
return parts[2] == "0"
return False
def get_app_title():
suffix = " [测试版]" if is_beta_version() else ""
return f"{APP_NAME} v{APP_VERSION}{suffix}"