mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
✨ Added microg patch
This commit is contained in:
@@ -163,6 +163,7 @@ By default, script build the version as recommended by Revanced team.
|
||||
36. [infinity](https://www.apkmirror.com/apk/red-apps-ltd/sync-for-reddit/)
|
||||
37. [slide](https://www.apkmirror.com/apk/haptic-apps/slide-for-reddit/)
|
||||
38. [bacon](https://www.apkmirror.com/apk/onelouder-apps/baconreader-for-reddit/)
|
||||
39. [microg](https://github.com/inotia00/mMicroG/releases)
|
||||
|
||||
<br>Please verify the source of original APKs yourself with links provided. I'm not responsible for any damaged caused.
|
||||
If you know any better/safe source to download clean. Please raise a PR.
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ class RevancedConfig(object):
|
||||
self.keystore_name = env.str("KEYSTORE_FILE_NAME", "revanced.keystore")
|
||||
self.ci_test = env.bool("CI_TEST", False)
|
||||
self.apps = env.list("PATCH_APPS", default_build)
|
||||
self.extended_apps: List[str] = ["youtube", "youtube_music"]
|
||||
self.extended_apps: List[str] = ["youtube", "youtube_music", "microg"]
|
||||
self.rip_libs_apps: List[str] = ["youtube"]
|
||||
self.normal_cli_jar = "revanced-cli.jar"
|
||||
self.normal_patches_jar = "revanced-patches.jar"
|
||||
|
||||
@@ -24,7 +24,7 @@ class DownloaderFactory(object):
|
||||
patcher : Patcher
|
||||
config : Config
|
||||
"""
|
||||
if app == "patches":
|
||||
if app == "patches" or app == "microg":
|
||||
return Github(patcher, config)
|
||||
if app in config.apk_pure:
|
||||
return ApkPure(patcher, config)
|
||||
|
||||
@@ -16,14 +16,14 @@ class Github(Downloader):
|
||||
|
||||
:param app: App to download
|
||||
"""
|
||||
owner = str(kwargs["owner"])
|
||||
repo_name = str(kwargs["name"])
|
||||
logger.debug(f"Trying to download {app} from github")
|
||||
if self.config.dry_run:
|
||||
if self.config.dry_run or app == "microg":
|
||||
logger.debug(
|
||||
f"Skipping download of {app}. File already exists or dry running."
|
||||
)
|
||||
return
|
||||
owner = str(kwargs["owner"])
|
||||
repo_name = str(kwargs["name"])
|
||||
repo_url = f"https://api.github.com/repos/{owner}/{repo_name}/releases/latest"
|
||||
headers = {
|
||||
"Content-Type": "application/vnd.github.v3+json",
|
||||
|
||||
+11
-2
@@ -29,9 +29,18 @@ def download_revanced(config: RevancedConfig, patcher: Patches) -> None:
|
||||
["inotia00", "revanced-integrations", config.integrations_apk],
|
||||
["inotia00", "revanced-patches", config.patches_jar],
|
||||
]
|
||||
if "youtube" in config.apps or "youtube_music" in config.apps:
|
||||
if (
|
||||
"youtube" in config.apps
|
||||
or "youtube_music" in config.apps
|
||||
or "microg" in config.apps
|
||||
):
|
||||
if config.build_extended and "microg" in config.apps:
|
||||
assets += [
|
||||
["inotia00", "mMicroG", "mMicroG-output.apk"],
|
||||
["inotia00", "mMicroG", "microg.apk"],
|
||||
]
|
||||
else:
|
||||
assets += [
|
||||
["inotia00", "mMicroG", "microg-output.apk"],
|
||||
]
|
||||
downloader = DownloaderFactory.create_downloader(
|
||||
app="patches", patcher=patcher, config=config
|
||||
|
||||
@@ -57,6 +57,7 @@ class Patches(object):
|
||||
_revanced_extended_app_ids = {
|
||||
"com.google.android.youtube": "youtube",
|
||||
"com.google.android.apps.youtube.music": "youtube_music",
|
||||
"com.mgoogle.android.gms": "microg",
|
||||
}
|
||||
revanced_extended_app_ids = {
|
||||
key: (value, "_" + value) for key, value in _revanced_extended_app_ids.items()
|
||||
|
||||
Reference in New Issue
Block a user