From 07ce0349837fffc221184857be56517a2d208bd8 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 19 Apr 2022 15:51:59 +0200 Subject: Workaround PyInstaller 5.0 icon finding See https://github.com/pyinstaller/pyinstaller/issues/6759 Fixes #7132, see #7129 --- misc/qutebrowser.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/misc/qutebrowser.spec b/misc/qutebrowser.spec index 60729266e..3c75d1b90 100644 --- a/misc/qutebrowser.spec +++ b/misc/qutebrowser.spec @@ -2,6 +2,7 @@ import sys import os +import pathlib sys.path.insert(0, os.getcwd()) from scripts import setupcommon @@ -41,7 +42,10 @@ setupcommon.write_git_file() if os.name == 'nt': - icon = '../qutebrowser/icons/qutebrowser.ico' + # WORKAROUND for PyInstaller 5.0 bug: + # https://github.com/pyinstaller/pyinstaller/issues/6759 + icons_path = pathlib.Path.cwd() / 'qutebrowser' / 'icons' + icon = str(icons_path / 'qutebrowser.ico') elif sys.platform == 'darwin': icon = '../qutebrowser/icons/qutebrowser.icns' else: -- cgit v1.2.3-54-g00ecf