Only use upx on Windows

Contributes to CURA-9365
This commit is contained in:
j.spijker@ultimaker.com 2022-07-01 06:37:34 +02:00 committed by Jelle Spijker
parent 3fe0f26e94
commit f3ebf98440
2 changed files with 3 additions and 2 deletions

View File

@ -39,7 +39,7 @@ exe = EXE(
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx={{ upx }},
console=False,
disable_windowed_traceback=False,
argv_emulation=False,

View File

@ -188,7 +188,8 @@ class CuraConan(ConanFile):
hiddenimports = pyinstaller_metadata["hiddenimports"],
collect_all = pyinstaller_metadata["collect_all"],
icon = icon_path,
entitlements_file = entitlements_file
entitlements_file = entitlements_file,
upx = str(self.settings.os == "Windows")
))
def source(self):