diff --git a/laser_tracing_config.py b/laser_tracing_config.py index 33498ce..dae11b6 100644 --- a/laser_tracing_config.py +++ b/laser_tracing_config.py @@ -18,6 +18,9 @@ import shutil import subprocess from datetime import datetime +# 软件版本号 +APP_VERSION = "V1.0.0" + def resource_path(relative_path): if hasattr(sys, '_MEIPASS'): @@ -28,7 +31,7 @@ def resource_path(relative_path): class LaserTracingConfigApp: def __init__(self, root): self.root = root - self.root.title("边坡变形监测-变形(位移)自动测量系统配置工具") + self.root.title(f"边坡变形监测-变形(位移)自动测量系统配置工具(宽带版 {APP_VERSION})") self.root.resizable(True, True) icon_path = resource_path("传感器.ico") diff --git a/version_info.py b/version_info.py new file mode 100644 index 0000000..a6ceab1 --- /dev/null +++ b/version_info.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# PyInstaller 版本信息文件(宽带版) + +VSVersionInfo( + ffi=FixedFileInfo( + filevers=(1, 0, 0, 0), + prodvers=(1, 0, 0, 0), + mask=0x3F, + flags=0x0, + OS=0x40004, + fileType=0x1, + subtype=0x0, + date=(0, 0), + ), + kids=[ + StringFileInfo( + [ + StringTable( + "080404b0", + [ + StringStruct("CompanyName", ""), + StringStruct("FileDescription", "边坡变形监测-变形(位移)自动测量系统配置工具(宽带版)"), + StringStruct("FileVersion", "1.0.0.0"), + StringStruct("InternalName", "laser_tracing_config"), + StringStruct("LegalCopyright", ""), + StringStruct("OriginalFilename", "边坡变形监测-变形(位移)自动测量系统配置工具(宽带版).exe"), + StringStruct("ProductName", "边坡变形监测-变形(位移)自动测量系统配置工具"), + StringStruct("ProductVersion", "1.0.0.0"), + ], + ) + ] + ), + VarFileInfo([VarStruct("Translation", [2052, 1200])]), + ], +)