From 460f613fecbd78f22ecb4671a9fd612a4ca1fffc Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 26 Mar 2016 21:55:47 +0100 Subject: [PATCH] pyinstaller: Set icon --- misc/qutebrowser.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/misc/qutebrowser.spec b/misc/qutebrowser.spec index a9179a69e..288b50b6a 100644 --- a/misc/qutebrowser.spec +++ b/misc/qutebrowser.spec @@ -29,6 +29,14 @@ def get_data_files(): setupcommon.write_git_file() +if os.name == 'nt': + icon = 'icons/qutebrowser.ico' +elif sys.platform == 'darwin': + icon = 'icons/qutebrowser.icns' +else: + icon = None + + a = Analysis(['../qutebrowser.py'], pathex=['misc'], binaries=None, @@ -46,6 +54,7 @@ exe = EXE(pyz, a.scripts, exclude_binaries=True, name='qutebrowser', + icon=icon, debug=False, strip=False, upx=True,