Files
krowlog/make_installer.py
Andreas Huber d36724f3e7 replace watchdog with active polling thread
watchdog does not work on windows. For some
reason file modification events are not
emitted.
Fixed by replacing watchdog with a thread
that polls the modification date ever 0.5s.

Also fixed a bug that the hit view was not
properly destructed.
2025-04-06 09:34:08 +02:00

29 lines
902 B
Python

import PyInstaller.__main__
import os
import sys
os.system("git -C . describe --match \"*.*.*\" --tags > version.txt")
arguments = [
'krowlog.py',
# '--onefile',
'--noconfirm',
'--name=krowlog',
'--windowed',
'--icon=icons' + os.sep + 'krowlog.ico', # doesn't work on Linux (needs .desktop file), windows needs ico
'--add-data', 'src' + os.pathsep + 'src',
'--add-binary', 'icons' + os.pathsep + 'icons',
'--add-binary', 'locales' + os.pathsep + 'locales',
'--add-binary', 'LICENSE' + os.pathsep + '.',
'--add-binary', 'changelog.txt' + os.pathsep + '.',
'--add-binary', 'version.txt' + os.pathsep + '.',
'--hidden-import=krowlog',
'--hidden-import=__future__',
'--hidden-import=configparser'
]
if sys.platform == 'win32' or sys.platform == 'cygwin':
arguments.append('--version-file=version.py')
PyInstaller.__main__.run(arguments)