mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
🎨 Per app arch support
This commit is contained in:
@@ -32,6 +32,9 @@ class APP(object):
|
||||
self.keystore_name = config.env.str(
|
||||
f"{app_name}_KEYSTORE_FILE_NAME".upper(), config.global_keystore_name
|
||||
)
|
||||
self.archs_to_build = config.env.list(
|
||||
f"{app_name}_ARCHS_TO_BUILD".upper(), config.global_archs_to_build
|
||||
)
|
||||
self.download_patch_resources(config)
|
||||
|
||||
def get_output_file_name(self) -> str:
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ class RevancedConfig(object):
|
||||
key: value + value.split("/")[-2]
|
||||
for key, value in self.apk_mirror_urls.items()
|
||||
}
|
||||
self.archs_to_build = env.list("ARCHS_TO_BUILD", [])
|
||||
self.global_archs_to_build = env.list("GLOBAL_ARCHS_TO_BUILD", [])
|
||||
self.alternative_youtube_patches = env.list("ALTERNATIVE_YOUTUBE_PATCHES", [])
|
||||
self.alternative_youtube_music_patches = env.list(
|
||||
"ALTERNATIVE_YOUTUBE_MUSIC_PATCHES", []
|
||||
|
||||
+1
-1
@@ -102,7 +102,7 @@ class Parser(object):
|
||||
if self._PATCHES:
|
||||
args.extend(self._PATCHES)
|
||||
if app.app_name in self.config.rip_libs_apps:
|
||||
excluded = set(possible_archs) - set(self.config.archs_to_build)
|
||||
excluded = set(possible_archs) - set(app.archs_to_build)
|
||||
for arch in excluded:
|
||||
args.append("--rip-lib")
|
||||
args.append(arch)
|
||||
|
||||
Reference in New Issue
Block a user