Browse Source

Fixed missing qoutes

Contributes to CURA-9365
j.spijker@ultimaker.com 2 years ago
parent
commit
4d98ba3540
2 changed files with 3 additions and 5 deletions
  1. 1 3
      Ultimaker-Cura.spec.jinja
  2. 2 2
      conanfile.py

+ 1 - 3
Ultimaker-Cura.spec.jinja

@@ -255,13 +255,11 @@ app = UMBUNDLE(
         'CFBundleExecutable': '{{ name }}',
         'CFBundleExecutable': '{{ name }}',
         'CFBundleInfoDictionaryVersion': '6.0',
         'CFBundleInfoDictionaryVersion': '6.0',
         'CFBundlePackageType': 'APPL',
         'CFBundlePackageType': 'APPL',
-        'CFBundleShortVersionString': '{{ short_version }}',
+        'CFBundleShortVersionString': {{ short_version }},
         'CFBundleDocumentTypes': [{
         'CFBundleDocumentTypes': [{
                 'CFBundleTypeRole': 'Viewer',
                 'CFBundleTypeRole': 'Viewer',
                 'CFBundleTypeExtensions': ['*'],
                 'CFBundleTypeExtensions': ['*'],
                 'CFBundleTypeName': 'Model Files',
                 'CFBundleTypeName': 'Model Files',
-                'LSItemContentTypes': ['com.example.myformat'],
-                'LSHandlerRank': 'Owner'
             }]
             }]
         },
         },
 ){% endif %}
 ){% endif %}

+ 2 - 2
conanfile.py

@@ -203,8 +203,8 @@ class CuraConan(ConanFile):
                 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}",
+                version = f"'{self.version}'",
+                short_version = f"'{cura_version.major}.{cura_version.minor}.{cura_version.patch}'",
             ))
             ))
 
 
     def source(self):
     def source(self):