Skip to content

Commit

Permalink
Switched ElvUI source to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Sep 13, 2021
1 parent 6008e3d commit c33abb3
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 69 deletions.
15 changes: 6 additions & 9 deletions CB/Core.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from . import retry, HEADERS, __version__
from .Tukui import TukuiAddon
from .GitHub import GitHubAddon, GitHubAddonRaw
from .GitLab import GitLabAddon
from .CurseForge import CurseForgeAddon
from .WoWInterface import WoWInterfaceAddon
from .TownlongYak import TownlongYakAddon
Expand Down Expand Up @@ -236,24 +235,22 @@ def parse_url(self, url):
return TukuiAddon('2', self.tukuiCache)
elif url.lower() == 'elvui:dev':
if self.clientType == 'wow_retail':
return GitLabAddon('ElvUI', '60', 'elvui/elvui', 'development')
return GitHubAddonRaw('tukui-org/ElvUI', 'development', ['ElvUI', 'ElvUI_OptionsUI'])
elif self.clientType == 'wow_burning_crusade':
return GitLabAddon('ElvUI', '1452', 'elvui/elvui-tbc', 'development')
return GitHubAddonRaw('tukui-org/ElvUI-TBC', 'development', ['ElvUI', 'ElvUI_OptionsUI'])
else:
return GitLabAddon('ElvUI', '492', 'elvui/elvui-classic', 'development')
return GitHubAddonRaw('tukui-org/ElvUI-Classic', 'development', ['ElvUI', 'ElvUI_OptionsUI'])
elif url.lower() == 'tukui':
if self.clientType == 'wow_retail':
return TukuiAddon('Tukui', self.tukuiCache, 'tukui')
else:
self.bulk_tukui_check()
return TukuiAddon('1', self.tukuiCache)
elif url.lower() == 'tukui:dev':
if self.clientType == 'wow_retail':
return GitLabAddon('Tukui', '77', 'Tukz/Tukui', 'Retail')
elif self.clientType == 'wow_burning_crusade':
return GitLabAddon('Tukui', '77', 'Tukz/Tukui', 'Classic-TBC')
if self.clientType == 'wow_retail' or self.clientType == 'wow_burning_crusade':
return GitHubAddonRaw('tukui-org/Tukui', 'Live', ['Tukui'])
else:
return GitLabAddon('Tukui', '77', 'Tukz/Tukui', 'Classic')
return GitHubAddonRaw('tukui-org/Tukui', 'Live-Classic-Era', ['Tukui'])
elif url.lower() == 'shadow&light:dev':
if self.clientType == 'wow_retail':
return GitHubAddonRaw('Shadow-and-Light/shadow-and-light', 'dev', ['ElvUI_SLE'])
Expand Down
9 changes: 8 additions & 1 deletion CB/GitHub.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from . import retry, HEADERS


# noinspection PyTypeChecker
class GitHubAddon:
@retry()
def __init__(self, url, clienttype):
Expand Down Expand Up @@ -136,7 +137,13 @@ def __init__(self, project, branch, targetdirs):
self.directories = targetdirs
self.author = []

if project == 'Shadow-and-Light/shadow-and-light':
if project.startswith('tukui-org/ElvUI'):
self.name = 'ElvUI'
self.author = ['Elv']
elif project == 'tukui-org/Tukui':
self.name = 'TukUI'
self.author = ['Tukz']
elif project == 'Shadow-and-Light/shadow-and-light':
self.name = 'ElvUI Shadow & Light'
self.author = ['Repooc', 'DarthPredator']
else:
Expand Down
56 changes: 0 additions & 56 deletions CB/GitLab.py

This file was deleted.

2 changes: 1 addition & 1 deletion CB/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import random
from rich.terminal_theme import TerminalTheme

__version__ = '3.18.1'
__version__ = '3.18.2'
__license__ = 'GPLv3'
__copyright__ = '2019-2021, Paweł Jastrzębski <pawelj@iosphe.re>'
__docformat__ = 'restructuredtext en'
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ By default **CurseBreaker** will create backups of entire `WTF` directory.
## SUPPORTED URL
- CurseForge: `https://www.curseforge.com/wow/addons/[addon_name]`, `cf:[addon_name]`
- WoWInterface: `https://www.wowinterface.com/downloads/[addon_name]`, `wowi:[addon_id]`
- Tukui: `https://www.tukui.org/addons.php?id=[addon_id]`, `https://www.tukui.org/classic-addons.php?id=[addon_id]`, `https://www.tukui.org/classic-tbc-addons.php?id=[addon_id]`, `tu:[addon_id]`, `tuc:[addon_id]` , `tubc:[addon_id]`
- Tukui: `ElvUI`, `Tukui`, `https://www.tukui.org/addons.php?id=[addon_id]`, `https://www.tukui.org/classic-addons.php?id=[addon_id]`, `https://www.tukui.org/classic-tbc-addons.php?id=[addon_id]`, `tu:[addon_id]`, `tuc:[addon_id]` , `tubc:[addon_id]`
- Townlong Yak: `https://www.townlong-yak.com/addons/[addon_name]`, `ty:[addon_name]`
- Tukui GitLab: `ElvUI`, `ElvUI:Dev`, `Tukui`, `Tukui:Dev`, `Shadow&Light:Dev`
- GitHub: `ElvUI:Dev`, `Tukui:Dev`, `Shadow&Light:Dev`
- GitHub Releases: `https://github.com/[username]/[repository_name]`, `gh:[username]/[repository_name]`
- Wago: **CurseBreaker** can update auras and Plater profiles/scripts like WeakAuras Companion.

Expand Down

0 comments on commit c33abb3

Please sign in to comment.