update zsync location

This commit is contained in:
Dominik Demuth 2023-04-02 19:44:01 +02:00
parent 75f9bc84f8
commit d7fd8395e5

View File

@ -213,18 +213,17 @@ class Downloader(QtCore.QObject):
class Updater: class Updater:
host = 'mirror.infra.pkm' host = 'gitea.pkm.physik.tu-darmstadt.de/api/packages/IPKM/generic/NMReval/latest/'
bucket = 'nmreval'
version = 'NMReval-latest-x86_64' version = 'NMReval-latest-x86_64'
@property @property
def zsync_url(self): def zsync_url(self):
return f'http://{Updater.host}/{Updater.bucket}/{Updater.version}.AppImage.zsync' return f'https://{Updater.host}/{Updater.version}.AppImage.zsync'
@staticmethod @staticmethod
@lru_cache(3) @lru_cache(3)
def get_zsync(): def get_zsync():
url_zsync = f'http://{Updater.host}/{Updater.bucket}/{Updater.version}.AppImage.zsync' url_zsync = f'https://{Updater.host}/{Updater.version}.AppImage.zsync'
m_time_zsync = None m_time_zsync = None
checksum_zsync = None checksum_zsync = None
zsync_file = None zsync_file = None