From abdd7b39f02332636dc4479f660111c5de3dc29b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Sat, 30 Mar 2024 08:11:43 +0100 Subject: [PATCH] Fixed support of the development version of ElvUI --- CB/GitHub.py | 6 +++++- CB/__init__.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CB/GitHub.py b/CB/GitHub.py index 1e7cdca..929d8b9 100644 --- a/CB/GitHub.py +++ b/CB/GitHub.py @@ -166,7 +166,11 @@ def __init__(self, addon, apikey): else: self.payload = self.payload.json() self.shorthPath = repository.split('/')[1] - self.downloadUrl = f'https://github.com/{repository}/archive/refs/heads/{self.branch}.zip' + if self.name in ['ElvUI']: + self.downloadUrl = f'https://api.tukui.org/v1/download/dev/{self.name.lower()}/{self.branch}' + else: + self.downloadUrl = f'https://github.com/{repository}/archive/refs/heads/{self.branch}.zip' + self.changelogUrl = f'https://github.com/{repository}/commits/{self.branch}' self.currentVersion = self.payload['commit']['sha'][:7] self.uiVersion = None diff --git a/CB/__init__.py b/CB/__init__.py index 4c488ce..a1fea87 100644 --- a/CB/__init__.py +++ b/CB/__init__.py @@ -1,7 +1,7 @@ import requests from rich.terminal_theme import TerminalTheme -__version__ = '4.5.5' +__version__ = '4.6.0' __license__ = 'GPLv3' __copyright__ = '2019-2024, Paweł Jastrzębski ' __docformat__ = 'restructuredtext en'