feat: --custom-aapt2-binary option (#104)

This commit is contained in:
Robert 2022-07-21 14:11:26 +02:00 committed by GitHub
parent 5f2bccc4e5
commit d8dbffd7a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,6 +113,9 @@ internal object MainCommand : Runnable {
description = ["Clean the temporal resource cache directory. This will be done anyways when running the patcher"] description = ["Clean the temporal resource cache directory. This will be done anyways when running the patcher"]
) )
var clean: Boolean = false var clean: Boolean = false
@Option(names = ["--custom-aapt2-binary"], description = ["Path to custom aapt2 binary"])
var aaptPath: String = ""
} }
override fun run() { override fun run() {
@ -149,6 +152,7 @@ internal object MainCommand : Runnable {
_args.inputFile, _args.inputFile,
args.cacheDirectory, args.cacheDirectory,
!args.disableResourcePatching, !args.disableResourcePatching,
args.aaptPath,
logger = PatcherLogger logger = PatcherLogger
) )
) )