[no cd] strip non-Win builds

This commit is contained in:
Jay Lee
2022-03-30 07:27:31 -04:00
committed by GitHub
parent b68cc671eb
commit cc23f98078

View File

@@ -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)