From 7e1136926e8507615b96b6d773794d657c5355c1 Mon Sep 17 00:00:00 2001 From: Jeff <632006142@qq.com> Date: Fri, 22 May 2026 14:13:54 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=AE=9E=E4=BE=8B=E7=BC=BA=E5=B0=91?= =?UTF-8?q?=E7=9A=84=E5=BA=93=202=E3=80=81=E4=B8=8D=E4=BE=9D=E8=B5=96app?= =?UTF-8?q?=5Fversion.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pqAutomationApp.spec | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/pqAutomationApp.spec b/pqAutomationApp.spec index 369c6ad..4c1c727 100644 --- a/pqAutomationApp.spec +++ b/pqAutomationApp.spec @@ -22,20 +22,10 @@ from PyInstaller.utils.win32.versioninfo import ( VarStruct, ) - -def build_windows_version(version_text): - parts = [int(part) for part in version_text.split('.') if part.strip()] - parts = (parts + [0, 0, 0, 0])[:4] - return tuple(parts) - - -windows_version = build_windows_version(APP_VERSION) -windows_version_text = '.'.join(str(part) for part in windows_version) - version_info = VSVersionInfo( ffi=FixedFileInfo( - filevers=windows_version, - prodvers=windows_version, + filevers=(5, 26, 1519, 2), + prodvers=(5, 0, 1, 0), mask=0x3F, flags=0x0, OS=0x40004, @@ -51,11 +41,11 @@ version_info = VSVersionInfo( [ StringStruct('CompanyName', 'Moka'), StringStruct('FileDescription', APP_NAME), - StringStruct('FileVersion', windows_version_text), + StringStruct('FileVersion', '5.26.1519.2'), StringStruct('InternalName', 'pqAutomationApp'), StringStruct('OriginalFilename', 'pqAutomationApp.exe'), StringStruct('ProductName', APP_NAME), - StringStruct('ProductVersion', windows_version_text), + StringStruct('ProductVersion', '5.0.1.0'), ], ) ]