mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-24 19:38:36 +09:00
✨ Ability to provide patch resource locally
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
@@ -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.<br><br>
|
||||
@@ -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.<br>
|
||||
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. <a id="global-keystore-file-name"></a>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
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
|:--------------------------------------------|---------------:|
|
||||
| Parallelize app object creation. | <li> [ ] </li> |
|
||||
| Parallelize app patching. | <li> [ ] </li> |
|
||||
| Ability to provide local patching resources | <li> [ ] </li> |
|
||||
| Ability to provide local patching resources | <li> [X] </li> |
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user