From 91c7fdaf2d3789b9018aeeab29911f221d710f80 Mon Sep 17 00:00:00 2001 From: Kevin Cathcart Date: Tue, 21 Nov 2017 08:03:48 -0500 Subject: [PATCH] Update Spec File --- bundle/EntranceRandomizer.spec | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/bundle/EntranceRandomizer.spec b/bundle/EntranceRandomizer.spec index 975255e6..2e73e6ab 100644 --- a/bundle/EntranceRandomizer.spec +++ b/bundle/EntranceRandomizer.spec @@ -1,9 +1,9 @@ # -*- mode: python -*- - +from PyInstaller.compat import is_win block_cipher = None - -a = Analysis(['..\\EntranceRandomizer.py'], +# Todo: the runtime hooks should only be installed on windows +a = Analysis(['../EntranceRandomizer.py'], pathex=['bundle'], binaries=[], datas=[('../data/', 'data/'), ('../README.html', '.'), ('../LICENSE.txt', '.')], @@ -16,6 +16,7 @@ a = Analysis(['..\\EntranceRandomizer.py'], cipher=block_cipher) pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) + exe = EXE(pyz, a.scripts, exclude_binaries=True, @@ -23,7 +24,7 @@ exe = EXE(pyz, debug=False, strip=False, upx=False, - console=True ) + console=is_win ) coll = COLLECT(exe, a.binaries, a.zipfiles, @@ -31,3 +32,7 @@ coll = COLLECT(exe, strip=False, upx=False, name='EntranceRandomizer') +app = BUNDLE(coll, + name ='EntranceRandomizer.app', + icon = None, + bundle_identifier = None)