Skip to content

Commit

Permalink
Merge pull request #1 from apple1417/master
Browse files Browse the repository at this point in the history
change willow db urls
  • Loading branch information
apple1417 authored Oct 13, 2024
2 parents f8790eb + 7124236 commit 5c4c3f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI

on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]

jobs:
spelling:
Expand Down
12 changes: 6 additions & 6 deletions mod_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ def cmp(a: Mod, b: Mod) -> int:
match Game.get_tree():
case Game.Willow2:
MOD_DB_URL = ( # pyright: ignore[reportConstantRedefinition]
"https://bl-sdk.github.io/"
"https://bl-sdk.github.io/willow2-mod-db/"
)
MOD_RELEASE_API_URL = ( # pyright: ignore[reportConstantRedefinition]
"https://api.github.com/repos/bl-sdk/willow-mod-manager/releases/latest"
"https://api.github.com/repos/bl-sdk/willow2-mod-manager/releases/latest"
)
MOD_RELEASE_DOWNLOAD_URL = ( # pyright: ignore[reportConstantRedefinition]
"https://github.com/bl-sdk/willow-mod-manager/releases/"
"https://github.com/bl-sdk/willow2-mod-manager/releases/"
)
case Game.Oak:
MOD_DB_URL = ( # pyright: ignore[reportConstantRedefinition]
Expand All @@ -118,15 +118,15 @@ def cmp(a: Mod, b: Mod) -> int:
"https://github.com/bl-sdk/oak-mod-manager/releases/"
)

_MANAGER_VERSION = os.environ.get("MOD_MANAGER_DISPLAY_VERSION", "Unknown Version")
MANAGER_VERSION = os.environ.get("MOD_MANAGER_DISPLAY_VERSION", "Unknown Version")
RE_MANAGER_VERSION = re.compile(r"v?(\d+)\.(\d+)")


@dataclass
class BaseMod(Library):
name: str = "Python SDK"
author: str = "bl-sdk"
version: str = _MANAGER_VERSION
version: str = MANAGER_VERSION
coop_support: CoopSupport = CoopSupport.ClientSide
settings_file: Path | None = SETTINGS_DIR / "python-sdk.json"

Expand Down Expand Up @@ -223,7 +223,7 @@ def get_this_release_tuple(self) -> tuple[int, ...] | None:
"""
if self.version == "Unknown Version":
return None
version_match = RE_MANAGER_VERSION.match(_MANAGER_VERSION)
version_match = RE_MANAGER_VERSION.match(MANAGER_VERSION)
if version_match is None:
return None
return tuple(int(x) for x in version_match.groups())
Expand Down

0 comments on commit 5c4c3f6

Please sign in to comment.