mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
📝 Always force patch
This commit is contained in:
@@ -153,13 +153,8 @@ class Parser(object):
|
|||||||
The `app` parameter is an instance of the `APP` class. It represents an application that needs
|
The `app` parameter is an instance of the `APP` class. It represents an application that needs
|
||||||
to be patched.
|
to be patched.
|
||||||
"""
|
"""
|
||||||
is_new = self.is_new_cli()
|
|
||||||
if is_new:
|
|
||||||
apk_arg = self.NEW_APK_ARG
|
apk_arg = self.NEW_APK_ARG
|
||||||
exp = "--force"
|
exp = "--force"
|
||||||
else:
|
|
||||||
apk_arg = self.APK_ARG
|
|
||||||
exp = "--experimental"
|
|
||||||
args = [
|
args = [
|
||||||
self.CLI_JAR,
|
self.CLI_JAR,
|
||||||
app.resource["cli"]["file_name"],
|
app.resource["cli"]["file_name"],
|
||||||
@@ -174,8 +169,6 @@ class Parser(object):
|
|||||||
self.OPTIONS_ARG,
|
self.OPTIONS_ARG,
|
||||||
app.options_file,
|
app.options_file,
|
||||||
]
|
]
|
||||||
if app.experiment:
|
|
||||||
logger.debug("Using experimental features")
|
|
||||||
args.append(exp)
|
args.append(exp)
|
||||||
args[1::2] = map(self.config.temp_folder.joinpath, args[1::2])
|
args[1::2] = map(self.config.temp_folder.joinpath, args[1::2])
|
||||||
if app.old_key:
|
if app.old_key:
|
||||||
@@ -194,7 +187,6 @@ class Parser(object):
|
|||||||
excluded = set(possible_archs) - set(app.archs_to_build)
|
excluded = set(possible_archs) - set(app.archs_to_build)
|
||||||
for arch in excluded:
|
for arch in excluded:
|
||||||
args.extend(("--rip-lib", arch))
|
args.extend(("--rip-lib", arch))
|
||||||
args.extend(("-f",))
|
|
||||||
start = perf_counter()
|
start = perf_counter()
|
||||||
logger.debug(f"Sending request to revanced cli for building with args java {args}")
|
logger.debug(f"Sending request to revanced cli for building with args java {args}")
|
||||||
process = Popen(["java", *args], stdout=PIPE)
|
process = Popen(["java", *args], stdout=PIPE)
|
||||||
|
|||||||
Reference in New Issue
Block a user