From cc23f980781aa06a2ccaf76160455313954b14b1 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Wed, 30 Mar 2022 07:27:31 -0400 Subject: [PATCH] [no cd] strip non-Win builds --- src/gam.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gam.spec b/src/gam.spec index 4bd4cade..6174dea4 100644 --- a/src/gam.spec +++ b/src/gam.spec @@ -33,11 +33,15 @@ for d in a.datas: pyz = PYZ(a.pure) + if sys.platform == "darwin": target_arch="universal2" else: target_arch=None +# use strip on all non-Windows platforms +strip = not sys.platform == 'win32' + exe = EXE(pyz, a.scripts, a.binaries, @@ -45,7 +49,7 @@ exe = EXE(pyz, a.datas, name='gam', debug=False, - strip=None, + strip=strip, upx=False, target_arch=target_arch, console=True)