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:
@@ -7,6 +7,7 @@ PyInstaller.__main__.run([
|
|||||||
'krowlog.py',
|
'krowlog.py',
|
||||||
# '--onefile',
|
# '--onefile',
|
||||||
'--noconfirm',
|
'--noconfirm',
|
||||||
|
'--version-file=version.py',
|
||||||
'--name=krowlog',
|
'--name=krowlog',
|
||||||
'--windowed',
|
'--windowed',
|
||||||
'--icon=icons' + os.sep + 'krowlog.ico', # doesn't work on Linux (needs .desktop file), windows needs ico
|
'--icon=icons' + os.sep + 'krowlog.ico', # doesn't work on Linux (needs .desktop file), windows needs ico
|
||||||
|
|||||||
28
version.py
Normal file
28
version.py
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
VSVersionInfo(
|
||||||
|
ffi=FixedFileInfo(
|
||||||
|
filevers=(0, 2, 1, 0),
|
||||||
|
prodvers=(0, 2, 1, 0),
|
||||||
|
mask=0x3f,
|
||||||
|
flags=0x0,
|
||||||
|
OS=0x40004,
|
||||||
|
fileType=0x1,
|
||||||
|
subtype=0x0,
|
||||||
|
date=(0, 0)
|
||||||
|
),
|
||||||
|
kids=[
|
||||||
|
StringFileInfo(
|
||||||
|
[
|
||||||
|
StringTable(
|
||||||
|
u'040904B0',
|
||||||
|
[StringStruct(u'CompanyName', u''),
|
||||||
|
StringStruct(u'FileDescription', u'KrowLog is a viewer for log files of arbitrary size.'),
|
||||||
|
StringStruct(u'FileVersion', u'0.2.1' ),
|
||||||
|
StringStruct(u'InternalName', u'krowlog'),
|
||||||
|
StringStruct(u'LegalCopyright', u'\xa9 Andreas Huber'),
|
||||||
|
StringStruct(u'OriginalFilename', u'krowlog.exe'),
|
||||||
|
StringStruct(u'ProductName', u'KrowLog'),
|
||||||
|
StringStruct(u'ProductVersion', u'0.2.1-dev')])
|
||||||
|
]),
|
||||||
|
VarFileInfo([VarStruct(u'Translation', [1033, 1200])])
|
||||||
|
]
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user