scripts: Fix exe name for non-Windows in freeze.py.

See #384.
This commit is contained in:
Florian Bruhin 2015-04-13 12:25:19 +02:00
parent 39f7850942
commit 566ffdbe23

View File

@ -68,10 +68,15 @@ bdist_msi_options = {
'add_to_path': False,
}
base = 'Win32GUI' if sys.platform.startswith('win') else None
if sys.platform.startswith('win'):
base = 'Win32GUI'
target_name = 'qutebrowser.exe'
else:
base = None
target_name = 'qutebrowser'
executable = cx.Executable('qutebrowser/__main__.py', base=base,
targetName='qutebrowser.exe',
targetName=target_name,
shortcutName='qutebrowser',
shortcutDir='ProgramMenuFolder',
icon=os.path.join(BASEDIR, 'icons',