diff --git a/README.md b/README.md index 9fdefa0..98aa938 100644 --- a/README.md +++ b/README.md @@ -54,5 +54,10 @@ By default script build the version as recommended by revanced team. ```dotenv PATCH_APPS=youtube,twitter,reddit ``` +4. 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 file in `environment` + ```dotenv + KEYSTORE_FILE_NAME=revanced.keystore + ``` ### Note Thanks to [@aliharslan0](https://github.com/aliharslan0/pyrevanced) for his work. diff --git a/apks/revanced.keystore b/apks/revanced.keystore new file mode 100644 index 0000000..098510e Binary files /dev/null and b/apks/revanced.keystore differ diff --git a/main.py b/main.py index c269317..acb8dac 100644 --- a/main.py +++ b/main.py @@ -28,6 +28,7 @@ supported_apps = [ "warnwetter", ] apps = env.list("PATCH_APPS", supported_apps) +keystore_name = env.str("KEYSTORE_FILE_NAME", "revanced.keystore") apk_mirror = "https://www.apkmirror.com" github = "https://www.github.com" apk_mirror_urls = { @@ -269,6 +270,8 @@ class ArgParser: "revanced-integrations.apk", "-o", f"Re{app}-{version}-output.apk", + "--keystore", + keystore_name, ] if is_experimental: logger.debug("Using experimental features")