add version info to compiled executable

This works on Windows, but it might not work on Linux.
Also the version number is not updated automatically.
I probably have to generate the file from a template, because
even though this is a python file you cannot add python code.
This commit is contained in:
2025-03-26 11:17:07 +01:00
parent be5e0c9ae6
commit 67f16571f1
2 changed files with 29 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ PyInstaller.__main__.run([
'krowlog.py',
# '--onefile',
'--noconfirm',
'--version-file=version.py',
'--name=krowlog',
'--windowed',
'--icon=icons' + os.sep + 'krowlog.ico', # doesn't work on Linux (needs .desktop file), windows needs ico