Use BUNDLE app for Macos

Contributes to CURA-9365

Co-authored-by: casperlamboo <c.lamboo@ultimaker.com>
This commit is contained in:
j.spijker@ultimaker.com 2022-07-01 08:05:32 +02:00 committed by Jelle Spijker
parent 627bd929c4
commit 5d057db298
2 changed files with 10 additions and 2 deletions

View file

@ -46,9 +46,9 @@ exe = EXE(
target_arch={{ target_arch }},
codesign_identity=os.getenv('CODESIGN_IDENTITY', None),
entitlements_file={{ entitlements_file }},
bundle_identifier={{ osx_bundle_identifier }},
icon={{ icon }}
)
coll = COLLECT(
exe,
a.binaries,
@ -59,3 +59,10 @@ coll = COLLECT(
upx_exclude=[],
name=r'{{ name }}'
)
{% if macos == 'True' %}app = BUNDLE(
coll,
name='{{ name }}.app',
icon='{{ icon }}',
bundle_identifier='{{ osx_bundle_identifier }}'
){% endif %}

View file

@ -192,7 +192,8 @@ class CuraConan(ConanFile):
osx_bundle_identifier = "'nl.ultimaker.cura.dmg'" if self.settings.os == "Macos" else "None",
upx = str(self.settings.os == "Windows"),
strip = str(self.settings.os != "Windows"),
target_arch = "x86_64" if self.settings.os == "Macos" else "None" # FIXME: Make this dependent on the settings.arch_target
target_arch = "x86_64" if self.settings.os == "Macos" else "None", # FIXME: Make this dependent on the settings.arch_target
macos = "'{}'".format(str(self.settings.os == "Macos"))
))
def source(self):