🎨 Per app key name

This commit is contained in:
Nikhil Badyal
2023-08-05 17:41:08 +05:30
parent c2c7e51956
commit f419e0e36f
4 changed files with 9 additions and 4 deletions
+2 -1
View File
@@ -214,6 +214,7 @@ By default, script build the version as recommended by Revanced team.
YOUTUBE_MUSIC_INTEGRATION_DL=https://github.com/inotia00/revanced-integrations/releases/latest
YOUTUBE_MUSIC_PATCHES_DL=https://github.com/inotia00/revanced-patches/releases/latest
YOUTUBE_MUSIC_CLI_DL=https://github.com/inotia00/revanced-cli/releases/latest
YOUTUBE_MUSIC_KEYSTORE_FILE_NAME=key.store
```
These link if not from GitHub must be direct download links.
7. You can also provide a default resources which will be used when per app config is missing.
@@ -260,7 +261,7 @@ By default, script build the version as recommended by Revanced team.
inside `apks` folder. And adding the name of `keystore-file` in `.env` file or in `ENVS` in `GitHub secrets`
(Recommended) in the format
```dotenv
KEYSTORE_FILE_NAME=revanced.keystore
GLOBAL_KEYSTORE_FILE_NAME=revanced.keystore
```
11. For Telegram Upload.
1. Set up a telegram channel, send a message to it and forward the message to
+3
View File
@@ -29,6 +29,9 @@ class APP(object):
self.include_request = config.env.list(f"INCLUDE_PATCH_{app_name}".upper(), [])
self.resource: Dict[str, str] = {}
self.no_of_patches = 0
self.keystore_name = config.env.str(
f"{app_name}_KEYSTORE_FILE_NAME".upper(), config.global_keystore_name
)
self.download_patch_resources(config)
def get_output_file_name(self) -> str:
+3 -1
View File
@@ -35,7 +35,9 @@ class RevancedConfig(object):
]
self.apk_pure = ["hex-editor", "androidtwelvewidgets"]
self.apk_sos = ["expensemanager", "candyvpn"]
self.keystore_name = env.str("KEYSTORE_FILE_NAME", "revanced.keystore")
self.global_keystore_name = env.str(
"GLOBAL_KEYSTORE_FILE_NAME", "revanced.keystore"
)
self.ci_test = env.bool("CI_TEST", False)
self.apps = env.list("PATCH_APPS", default_build)
self.rip_libs_apps: List[str] = []
+1 -2
View File
@@ -89,7 +89,7 @@ class Parser(object):
"-o",
app.get_output_file_name(),
"--keystore",
self.config.keystore_name,
app.keystore_name,
"--options",
"options.json",
]
@@ -111,7 +111,6 @@ class Parser(object):
logger.debug(
f"Sending request to revanced cli for building with args java {args}"
)
return
process = Popen(["java", *args], stdout=PIPE)
output = process.stdout
if not output: