diff options
author | Florian Bruhin <me@the-compiler.org> | 2022-04-19 15:51:59 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2022-04-19 15:51:59 +0200 |
commit | 07ce0349837fffc221184857be56517a2d208bd8 (patch) | |
tree | cd8be6c238abe91580d6627a5fc3904aba3cd41e | |
parent | 4617361a45c24b834d406f6a6742f004a3f22f7b (diff) | |
download | qutebrowser-07ce0349837fffc221184857be56517a2d208bd8.tar.gz qutebrowser-07ce0349837fffc221184857be56517a2d208bd8.zip |
Workaround PyInstaller 5.0 icon finding
See https://github.com/pyinstaller/pyinstaller/issues/6759
Fixes #7132, see #7129
-rw-r--r-- | misc/qutebrowser.spec | 6 |
1 files changed, 5 insertions, 1 deletions
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: |