altlinux-autorepacked/autorepacked/providers/ultimaker_cura/__init__.py

22 lines
585 B
Python
Raw Permalink Normal View History

2024-01-21 12:41:50 +03:00
from autorepacked.common_providers.github_releases_provider import GithubReleasesProvider
class UltimakerCuraProvider(GithubReleasesProvider):
_name = 'ultimaker-cura'
_repo = 'Ultimaker/Cura'
def _get_release_filename(self):
return f'UltiMaker-Cura-{self.get_version()}-linux.AppImage'
def get_download_name(self):
return f"ultimaker-cura-{self.get_version()}-linux-x86_64.AppImage"
def get_version(self):
# pin version due to error in start
return '5.4.0'
def get_provider(config):
return UltimakerCuraProvider(config)