mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
🎨 Removed extra function
This commit is contained in:
committed by
Nikhil Badyal
parent
e2de08fee3
commit
626f73ccb8
+3
-10
@@ -4,6 +4,8 @@ from typing import List, Self
|
|||||||
|
|
||||||
from environs import Env
|
from environs import Env
|
||||||
|
|
||||||
|
from src.utils import default_build
|
||||||
|
|
||||||
default_cli = "https://github.com/revanced/revanced-cli/releases/latest"
|
default_cli = "https://github.com/revanced/revanced-cli/releases/latest"
|
||||||
default_patches = "https://github.com/revanced/revanced-patches/releases/latest"
|
default_patches = "https://github.com/revanced/revanced-patches/releases/latest"
|
||||||
default_patches_json = default_patches
|
default_patches_json = default_patches
|
||||||
@@ -31,13 +33,4 @@ class RevancedConfig(object):
|
|||||||
self.extra_download_files: List[str] = env.list("EXTRA_FILES", [])
|
self.extra_download_files: List[str] = env.list("EXTRA_FILES", [])
|
||||||
self.apk_editor = "apkeditor-output.jar"
|
self.apk_editor = "apkeditor-output.jar"
|
||||||
self.extra_download_files.append("https://github.com/REAndroid/APKEditor@apkeditor.jar")
|
self.extra_download_files.append("https://github.com/REAndroid/APKEditor@apkeditor.jar")
|
||||||
self._fetch_or_default(env)
|
self.apps = env.list("PATCH_APPS", default_build)
|
||||||
|
|
||||||
def _fetch_or_default(self: Self, env: Env) -> None:
|
|
||||||
"""Get config from env or use default."""
|
|
||||||
from src.utils import default_build
|
|
||||||
|
|
||||||
self.apps = env.list(
|
|
||||||
"PATCH_APPS",
|
|
||||||
default_build,
|
|
||||||
)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user