diff --git a/.env.example b/.env.example index 0fb79e8..739ab17 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,5 @@ #GLobal envs -PATCH_APPS=youtube,youtube_music,twiiter +PATCH_APPS=youtube,youtube_music,twitter GLOBAL_CLI_DL=https://github.com/revanced/revanced-cli GLOBAL_PATCHES_DL=https://github.com/revanced/revanced-patches GLOBAL_PATCHES_JSON_DL=https://github.com/revanced/revanced-patches @@ -27,3 +27,7 @@ YOUTUBE_MUSIC_EXCLUDE_PATCH=yt-music-is-shit #Twitter TWITTER_VERSION=latest +TWITTER_CLI_DL=local://cli.jar +TWITTER_PATCHES_DL=local://patches.jar +TWITTER_PATCHES_JSON_DL=local://patches.json +TWITTER_INTEGRATIONS_DL=local://integrations.apk diff --git a/README.md b/README.md index 13c2e72..268cc5b 100644 --- a/README.md +++ b/README.md @@ -239,7 +239,7 @@ You can use any of the following methods to build. GLOBAL_CLI_DL=https://github.com/revanced/revanced-cli GLOBAL_PATCHES_DL=https://github.com/revanced/revanced-patches GLOBAL_PATCHES_JSON_DL=https://github.com/revanced/revanced-patches - GLOBAL_INTEGRATIONS_DL=https://github.com/revanced/revanced-integrations + GLOBAL_INTEGRATIONS_DL=local://integrations.apk ``` Resources downloaded from envs and will be used for patching for any **APP_NAME**. Unless provided different resource for the individual app.

@@ -253,8 +253,10 @@ You can use any of the following methods to build. YOUTUBE_PATCHES_JSON_DL=https://github.com/inotia00/revanced-patches YOUTUBE_INTEGRATIONS_DL=https://github.com/inotia00/revanced-integrations ``` - With the config tool will try to patch youtube with resources from inotia00 while other global resource will used - for patching other apps. + With the config tool will try to patch YouTube with resources from inotia00 while other global resource will used + for patching other apps.
+ If you have want to provide resource locally in the apks folder. You can specify that by mentioning filename + prefixed with `local://`. *Note* - The link provided must be DLs. Unless they are from GitHub. 8. If you don't want to use default keystore. You can provide your own by placing it inside `apks` folder. And adding the name of `keystore-file` in `.env` file or in `ENVS` in `GitHub diff --git a/TODOs.md b/TODOs.md index 002a186..291b737 100644 --- a/TODOs.md +++ b/TODOs.md @@ -4,4 +4,4 @@ |:--------------------------------------------|---------------:| | Parallelize app object creation. |
  • [ ]
  • | | Parallelize app patching. |
  • [ ]
  • | -| Ability to provide local patching resources |
  • [ ]
  • | +| Ability to provide local patching resources |
  • [X]
  • | diff --git a/src/app.py b/src/app.py index 5d18b29..51abc1c 100644 --- a/src/app.py +++ b/src/app.py @@ -66,6 +66,8 @@ class APP(object): from src.downloader.github import Github url = Github.patch_resource(url, assets_filter, config) + elif url.startswith("local://"): + return url.split("/")[-1] if not file_name: extension = pathlib.Path(url).suffix file_name = APP.generate_filename(url) + extension