fix: make constants constants
ALL CAPS
This commit is contained in:
parent
a3a6cfdbe3
commit
45a9953eb2
@ -1,5 +1,4 @@
|
|||||||
# Common
|
TELEMETRY_HOSTS = [
|
||||||
telemetry_hosts = [
|
|
||||||
# Global
|
# Global
|
||||||
"log-upload-os.hoyoverse.com",
|
"log-upload-os.hoyoverse.com",
|
||||||
"sg-public-data-api.hoyoverse.com",
|
"sg-public-data-api.hoyoverse.com",
|
||||||
@ -8,3 +7,4 @@ telemetry_hosts = [
|
|||||||
"log-upload.mihoyo.com",
|
"log-upload.mihoyo.com",
|
||||||
"public-data-api.mihoyo.com",
|
"public-data-api.mihoyo.com",
|
||||||
]
|
]
|
||||||
|
HDIFFPATCH_GIT_URL = "https://github.com/sisong/HDiffPatch"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
latest_version = (1, 1, 0)
|
LATEST_VERSION = (1, 1, 0)
|
||||||
md5sums = {
|
MD5SUMS = {
|
||||||
"1.0.5": {
|
"1.0.5": {
|
||||||
"cn": {
|
"cn": {
|
||||||
"StarRailBase.dll": "66c42871ce82456967d004ccb2d7cf77",
|
"StarRailBase.dll": "66c42871ce82456967d004ccb2d7cf77",
|
||||||
@ -12,5 +12,5 @@ md5sums = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
# Patches
|
# Patches
|
||||||
astra_repo = "https://notabug.org/mkrsym1/astra"
|
ASTRA_REPO = "https://notabug.org/mkrsym1/astra"
|
||||||
jadeite_repo = "https://codeberg.org/mkrsym1/jadeite/"
|
JADEITE_REPO = "https://codeberg.org/mkrsym1/jadeite/"
|
||||||
|
@ -11,7 +11,7 @@ from vollerei.exceptions.patcher import (
|
|||||||
from vollerei.hsr.launcher.game import Game, GameChannel
|
from vollerei.hsr.launcher.game import Game, GameChannel
|
||||||
from vollerei.utils import download_and_extract, Git, Xdelta3
|
from vollerei.utils import download_and_extract, Git, Xdelta3
|
||||||
from vollerei.paths import tools_data_path
|
from vollerei.paths import tools_data_path
|
||||||
from vollerei.hsr.constants import astra_repo, jadeite_repo
|
from vollerei.hsr.constants import ASTRA_REPO, JADEITE_REPO
|
||||||
|
|
||||||
|
|
||||||
class PatchType(Enum):
|
class PatchType(Enum):
|
||||||
@ -49,10 +49,10 @@ class Patcher(PatcherABC):
|
|||||||
self._patch_type = value
|
self._patch_type = value
|
||||||
|
|
||||||
def _update_astra(self):
|
def _update_astra(self):
|
||||||
self._git.pull_or_clone(astra_repo, self._astra)
|
self._git.pull_or_clone(ASTRA_REPO, self._astra)
|
||||||
|
|
||||||
def _update_jadeite(self):
|
def _update_jadeite(self):
|
||||||
release_info = self._git.get_latest_release(jadeite_repo)
|
release_info = self._git.get_latest_release(JADEITE_REPO)
|
||||||
file = self._git.get_latest_release_dl(release_info)[0]
|
file = self._git.get_latest_release_dl(release_info)[0]
|
||||||
file_version = release_info["tag_name"][1:] # Remove "v" prefix
|
file_version = release_info["tag_name"][1:] # Remove "v" prefix
|
||||||
current_version = None
|
current_version = None
|
||||||
|
Loading…
Reference in New Issue
Block a user