pyinstaller: Set icon
This commit is contained in:
parent
2f8ce31e1a
commit
460f613fec
@ -29,6 +29,14 @@ def get_data_files():
|
|||||||
setupcommon.write_git_file()
|
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'],
|
a = Analysis(['../qutebrowser.py'],
|
||||||
pathex=['misc'],
|
pathex=['misc'],
|
||||||
binaries=None,
|
binaries=None,
|
||||||
@ -46,6 +54,7 @@ exe = EXE(pyz,
|
|||||||
a.scripts,
|
a.scripts,
|
||||||
exclude_binaries=True,
|
exclude_binaries=True,
|
||||||
name='qutebrowser',
|
name='qutebrowser',
|
||||||
|
icon=icon,
|
||||||
debug=False,
|
debug=False,
|
||||||
strip=False,
|
strip=False,
|
||||||
upx=True,
|
upx=True,
|
||||||
|
Loading…
Reference in New Issue
Block a user