Gen version file
gen_version_file
Generate the Windows version resource that PyInstaller stamps into the executable.
Generated rather than committed: the version comes from the git tag at build time,
so a checked-in copy could only ever go stale. Needs the project installed, which
is why it carries no PEP 723 metadata block: run it as uv run python <path>.
Functions:
| Name | Description |
|---|---|
main |
|
TEMPLATE
TEMPLATE = "VSVersionInfo(\n ffi=FixedFileInfo(filevers={numbers}, prodvers={numbers}, mask=0x3f, flags=0x0, OS=0x40004, fileType=0x1, subtype=0x0, date=(0,0)),\n kids=[StringFileInfo([StringTable('040904B0', [\n StringStruct('CompanyName', '{organisation}'),\n StringStruct('FileDescription', '{name}'),\n StringStruct('FileVersion', '{version}'),\n StringStruct('InternalName', '{package}'),\n StringStruct('OriginalFilename', '{package}.exe'),\n StringStruct('ProductName', '{name}'),\n StringStruct('ProductVersion', '{version}')\n ])]), VarFileInfo([VarStruct('Translation', [1033, 1200])])]\n)\n"