|
|
@ -85,7 +85,6 @@ def set_version_info(exe, version):
|
|
|
|
def windows_set_version(exe, version):
|
|
|
|
def windows_set_version(exe, version):
|
|
|
|
from PyInstaller.utils.win32.versioninfo import (
|
|
|
|
from PyInstaller.utils.win32.versioninfo import (
|
|
|
|
FixedFileInfo,
|
|
|
|
FixedFileInfo,
|
|
|
|
SetVersion,
|
|
|
|
|
|
|
|
StringFileInfo,
|
|
|
|
StringFileInfo,
|
|
|
|
StringStruct,
|
|
|
|
StringStruct,
|
|
|
|
StringTable,
|
|
|
|
StringTable,
|
|
|
@ -94,6 +93,11 @@ def windows_set_version(exe, version):
|
|
|
|
VSVersionInfo,
|
|
|
|
VSVersionInfo,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
from PyInstaller.utils.win32.versioninfo import SetVersion
|
|
|
|
|
|
|
|
except ImportError: # Pyinstaller >= 5.8
|
|
|
|
|
|
|
|
from PyInstaller.utils.win32.versioninfo import write_version_info_to_executable as SetVersion
|
|
|
|
|
|
|
|
|
|
|
|
version_list = version_to_list(version)
|
|
|
|
version_list = version_to_list(version)
|
|
|
|
suffix = MACHINE and f'_{MACHINE}'
|
|
|
|
suffix = MACHINE and f'_{MACHINE}'
|
|
|
|
SetVersion(exe, VSVersionInfo(
|
|
|
|
SetVersion(exe, VSVersionInfo(
|
|
|
|