Add cura latest.json url to template so it can be set from the conanfile.

CURA-9272
This commit is contained in:
joeydelarago 2022-08-15 15:59:08 +02:00
parent 57d739a848
commit a20e7bf8d9
2 changed files with 7 additions and 1 deletions

View file

@ -100,6 +100,10 @@ class CuraConan(ConanFile):
def _digital_factory_url(self):
return "https://digitalfactory-staging.ultimaker.com" if self._staging else "https://digitalfactory.ultimaker.com"
@property
def _cura_latest_url(self):
return "https://raw.githubusercontent.com/Ultimaker/Uranium/CURA-9272_semver_postfix/tests/latest.json"
@property
def requirements_txts(self):
if self.options.devtools:
@ -161,7 +165,8 @@ class CuraConan(ConanFile):
cura_cloud_api_version = self.options.cloud_api_version,
cura_cloud_account_api_root = self._cloud_account_api_root,
cura_marketplace_root = self._marketplace_root,
cura_digital_factory_url = self._digital_factory_url))
cura_digital_factory_url = self._digital_factory_url,
cura_latest_url = self._cura_latest_url))
def _generate_pyinstaller_spec(self, location, entrypoint_location, icon_path, entitlements_file):
pyinstaller_metadata = self._um_data()["pyinstaller"]