From 4e22bf322cbd55295c7f36097681349ee50f1b90 Mon Sep 17 00:00:00 2001 From: Henri Wahl Date: Thu, 29 Aug 2024 17:58:39 +0200 Subject: [PATCH] try to fix pyinstaller resources --- Nagstamon/Config.py | 5 +++++ build/requirements/windows.txt | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Nagstamon/Config.py b/Nagstamon/Config.py index 0870afe31..b416aa597 100644 --- a/Nagstamon/Config.py +++ b/Nagstamon/Config.py @@ -1109,3 +1109,8 @@ def __init__(self, **kwds): RESOURCES = str(Path(__file__).parent.absolute().joinpath('resources')) print('resources 4: ' + RESOURCES) + +# try to fix missing resources path for Windows +if OS == 'Windows': + if r'\_internal\Nagstamon\resources' in RESOURCES: + RESOURCES = RESOURCES.replace(r'\_internal\Nagstamon\resources', r'\_internal\resources') diff --git a/build/requirements/windows.txt b/build/requirements/windows.txt index 3d2bcc3d6..5a1becbd2 100644 --- a/build/requirements/windows.txt +++ b/build/requirements/windows.txt @@ -4,8 +4,6 @@ keyring lxml pip-system-certs psutil -# last stable of the 5 series - InnoSetup does not work with Pyinstaller 6 -#pyinstaller==5.13.2 pyinstaller pypiwin32 pyqt6