mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Add missing info.plist
2ce60de673/packaging/Info.plist.in (L5)
Contributes to CURA-9365
This commit is contained in:
parent
b84ee29627
commit
c100f68f58
2 changed files with 23 additions and 1 deletions
|
@ -247,4 +247,21 @@ app = UMBUNDLE(
|
||||||
name='{{ name }}.app',
|
name='{{ name }}.app',
|
||||||
icon={{ icon }},
|
icon={{ icon }},
|
||||||
bundle_identifier={{ osx_bundle_identifier }}
|
bundle_identifier={{ osx_bundle_identifier }}
|
||||||
|
version={{ version }},
|
||||||
|
info_plist={
|
||||||
|
'CFBundleDisplayName': '{{ display_name }}',
|
||||||
|
'NSPrincipalClass': 'NSApplication',
|
||||||
|
'CFBundleDevelopmentRegion': 'English',
|
||||||
|
'CFBundleExecutable': '{{ name }}',
|
||||||
|
'CFBundleInfoDictionaryVersion': '6.0',
|
||||||
|
'CFBundlePackageType': 'APPL',
|
||||||
|
'CFBundleShortVersionString': '{{ short_version }}',
|
||||||
|
'CFBundleDocumentTypes': [{
|
||||||
|
'CFBundleTypeRole': 'Viewer',
|
||||||
|
'CFBundleTypeExtensions': ['*'],
|
||||||
|
'CFBundleTypeName': 'Model Files',
|
||||||
|
'LSItemContentTypes': ['com.example.myformat'],
|
||||||
|
'LSHandlerRank': 'Owner'
|
||||||
|
}]
|
||||||
|
},
|
||||||
){% endif %}
|
){% endif %}
|
||||||
|
|
|
@ -185,9 +185,12 @@ class CuraConan(ConanFile):
|
||||||
with open(Path(__file__).parent.joinpath("Ultimaker-Cura.spec.jinja"), "r") as f:
|
with open(Path(__file__).parent.joinpath("Ultimaker-Cura.spec.jinja"), "r") as f:
|
||||||
pyinstaller = Template(f.read())
|
pyinstaller = Template(f.read())
|
||||||
|
|
||||||
|
cura_version = tools.Version(self.version)
|
||||||
|
|
||||||
with open(Path(location, "Ultimaker-Cura.spec"), "w") as f:
|
with open(Path(location, "Ultimaker-Cura.spec"), "w") as f:
|
||||||
f.write(pyinstaller.render(
|
f.write(pyinstaller.render(
|
||||||
name = str(self.options.display_name).replace(" ", "-"),
|
name = str(self.options.display_name).replace(" ", "-"),
|
||||||
|
display_name = self.options.display_name,
|
||||||
entrypoint = entrypoint_location,
|
entrypoint = entrypoint_location,
|
||||||
datas = datas,
|
datas = datas,
|
||||||
binaries = binaries,
|
binaries = binaries,
|
||||||
|
@ -199,7 +202,9 @@ class CuraConan(ConanFile):
|
||||||
upx = str(self.settings.os == "Windows"),
|
upx = str(self.settings.os == "Windows"),
|
||||||
strip = False, # This should be possible on Linux and MacOS but, it can also cause issues on some distributions. Safest is to disable it for now
|
strip = False, # This should be possible on Linux and MacOS but, it can also cause issues on some distributions. Safest is to disable it for now
|
||||||
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 = self.settings.os == "Macos"
|
macos = self.settings.os == "Macos",
|
||||||
|
version = self.version,
|
||||||
|
short_version = f"{cura_version.major}.{cura_version.minor}.{cura_version.patch}",
|
||||||
))
|
))
|
||||||
|
|
||||||
def source(self):
|
def source(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue