mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-24 19:38:36 +09:00
✨ Build Og and Custom Icon
This commit is contained in:
@@ -30,6 +30,18 @@ def main() -> None:
|
||||
parser.patch_app(app=app, version=version, is_experimental=is_experimental)
|
||||
except Exception as e:
|
||||
logger.exception(f"Failed to build {app} because of {e}")
|
||||
if config.build_og_nd_branding_youtube:
|
||||
all_patches = parser.get_all_patches()
|
||||
branding_patch = "custom-branding"
|
||||
if config.build_extended:
|
||||
branding_patch = "custom-branding-blue"
|
||||
branding_index = all_patches.index(branding_patch)
|
||||
was_og_build = True if all_patches[branding_index - 1] == "-e" else False
|
||||
app = "youtube-custom-icon" if was_og_build else "youtube"
|
||||
_, version, is_experimental = patcher.get_app_configs("youtube")
|
||||
parser.invert_patch(branding_patch)
|
||||
parser.patch_app(app=app, version=version, is_experimental=is_experimental)
|
||||
logger.info(parser.get_all_patches())
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user