Provisions-Manager 95: Import, Händler-DB, Auszahlungsregeln, Excel-Export, Win95-Oberfläche, Wine-Build
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
da2e3c9ba1
25 files changed
+3366
No files matched your search
@@ -0,0 +1,26 @@
|
||||
"""Schreibt build/version_info.txt (Windows-Dateieigenschaften der .exe) aus provtool.__version__."""
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
sys.path.insert(0, str(ROOT))
|
||||
from provtool import APP_NAME, APP_ORG, __version__ # noqa: E402
|
||||
|
||||
v = tuple(int(x) for x in (__version__.split(".") + ["0", "0", "0"])[:4])
|
||||
text = f"""VSVersionInfo(
|
||||
ffi=FixedFileInfo(filevers={v}, prodvers={v}, mask=0x3f, flags=0x0, OS=0x40004, fileType=0x1, subtype=0x0),
|
||||
kids=[
|
||||
StringFileInfo([StringTable('040704b0', [
|
||||
StringStruct('CompanyName', '{APP_ORG}'),
|
||||
StringStruct('FileDescription', '{APP_NAME}'),
|
||||
StringStruct('FileVersion', '{__version__}'),
|
||||
StringStruct('InternalName', 'Provisionsmanager95'),
|
||||
StringStruct('OriginalFilename', 'Provisionsmanager95.exe'),
|
||||
StringStruct('ProductName', '{APP_NAME}'),
|
||||
StringStruct('ProductVersion', '{__version__}')])]),
|
||||
VarFileInfo([VarStruct('Translation', [0x0407, 1200])])
|
||||
]
|
||||
)
|
||||
"""
|
||||
(ROOT / "build" / "version_info.txt").write_text(text, encoding="utf-8")
|
||||
print(__version__)
|
||||
Reference in new issue
Block a user