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'), ], ) ]