宽带版:添加版本信息V1.0.0(窗口标题与exe属性)
This commit is contained in:
@@ -18,6 +18,9 @@ import shutil
|
|||||||
import subprocess
|
import subprocess
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
|
# 软件版本号
|
||||||
|
APP_VERSION = "V1.0.0"
|
||||||
|
|
||||||
|
|
||||||
def resource_path(relative_path):
|
def resource_path(relative_path):
|
||||||
if hasattr(sys, '_MEIPASS'):
|
if hasattr(sys, '_MEIPASS'):
|
||||||
@@ -28,7 +31,7 @@ def resource_path(relative_path):
|
|||||||
class LaserTracingConfigApp:
|
class LaserTracingConfigApp:
|
||||||
def __init__(self, root):
|
def __init__(self, root):
|
||||||
self.root = root
|
self.root = root
|
||||||
self.root.title("边坡变形监测-变形(位移)自动测量系统配置工具")
|
self.root.title(f"边坡变形监测-变形(位移)自动测量系统配置工具(宽带版 {APP_VERSION})")
|
||||||
self.root.resizable(True, True)
|
self.root.resizable(True, True)
|
||||||
|
|
||||||
icon_path = resource_path("传感器.ico")
|
icon_path = resource_path("传感器.ico")
|
||||||
|
|||||||
@@ -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])]),
|
||||||
|
],
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user