From 1d0b4b2fd1a59c2d417114560c0ab550f7f2f780 Mon Sep 17 00:00:00 2001 From: YuanHongbin <975559679@qq.com> Date: Mon, 7 Sep 2026 16:23:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=BD=E5=B8=A6=E7=89=88=EF=BC=9A=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=89=88=E6=9C=AC=E4=BF=A1=E6=81=AFV1.0.0=EF=BC=88?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E6=A0=87=E9=A2=98=E4=B8=8Eexe=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- laser_tracing_config.py | 5 ++++- version_info.py | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 version_info.py 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])]), + ], +)