🐛 Fix file not found

This commit is contained in:
Nikhil Badyal
2022-10-14 19:53:53 +05:30
parent a07d852ec4
commit c562839b9e
2 changed files with 22 additions and 6 deletions
+10 -2
View File
@@ -59,12 +59,20 @@ class Parser(object):
else:
self._PATCHES[patch_index - 1] = "-e"
def patch_app(self, app: str, version: str, is_experimental: bool = False) -> None:
# noinspection IncorrectFormatting
def patch_app(
self,
app: str,
version: str,
is_experimental: bool = False,
output_prefix: str = "-",
) -> None:
"""Revanced APP Patcher.
:param app: Name of the app
:param version: Version of the application
:param is_experimental: Whether to enable experimental support
:param output_prefix: Prefix to add to the output apks file name
"""
logger.debug(f"Sending request to revanced cli for building {app} revanced")
cli = self.config.normal_cli_jar
@@ -84,7 +92,7 @@ class Parser(object):
"-m",
integrations,
"-o",
f"Re-{app}-{version}-output.apk",
f"Re-{app}-{version}{output_prefix}output.apk",
"--keystore",
self.config.keystore_name,
]