Skip to content

Commit 8232c26

Browse files
committed
Exclude MacOS from splash screen inclusion
1 parent feb16ff commit 8232c26

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

pyinstaller.spec

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,20 @@ if sys.platform == 'linux':
7171

7272
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
7373

74-
splash = Splash(
75-
'pyinstaller/splash_screen.png',
76-
binaries=a.binaries,
77-
datas=a.datas,
78-
)
74+
if sys.platform != 'darwin':
75+
splash = Splash(
76+
'pyinstaller/splash_screen.png',
77+
binaries=a.binaries,
78+
datas=a.datas,
79+
)
80+
splash_scripts = [splash, splash.binaries]
81+
else:
82+
splash_scripts = []
7983

8084
exe = EXE(
8185
pyz,
8286
a.scripts,
83-
splash,
84-
splash.binaries,
87+
*splash_scripts,
8588
a.binaries,
8689
a.zipfiles,
8790
a.datas,

0 commit comments

Comments
 (0)