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:
host = 'mirror.infra.pkm'
bucket = 'nmreval'
host = 'gitea.pkm.physik.tu-darmstadt.de/api/packages/IPKM/generic/NMReval/latest/'
version = 'NMReval-latest-x86_64'
@property
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
@lru_cache(3)
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
checksum_zsync = None
zsync_file = None