mirror of
https://github.com/ReVanced/revanced-cli.git
synced 2026-01-18 08:53:58 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1cd0976415 | ||
|
|
d8dbffd7a7 | ||
|
|
5f2bccc4e5 |
@@ -1,3 +1,10 @@
|
|||||||
|
# [2.7.0](https://github.com/revanced/revanced-cli/compare/v2.6.0...v2.7.0) (2022-07-21)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* `--custom-aapt2-binary` option ([#104](https://github.com/revanced/revanced-cli/issues/104)) ([d8dbffd](https://github.com/revanced/revanced-cli/commit/d8dbffd7a7ebc583476d368d2ae78853cbb40382))
|
||||||
|
|
||||||
# [2.6.0](https://github.com/revanced/revanced-cli/compare/v2.5.3...v2.6.0) (2022-07-18)
|
# [2.6.0](https://github.com/revanced/revanced-cli/compare/v2.5.3...v2.6.0) (2022-07-18)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
kotlin.code.style = official
|
kotlin.code.style = official
|
||||||
version = 2.6.0
|
version = 2.7.0
|
||||||
|
|||||||
@@ -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
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ fun Patcher.addPatchesFiltered() {
|
|||||||
val args = MainCommand.args.sArgs?.pArgs!!
|
val args = MainCommand.args.sArgs?.pArgs!!
|
||||||
|
|
||||||
if (args.excludedPatches.contains(patchName)) {
|
if (args.excludedPatches.contains(patchName)) {
|
||||||
logger.info("$prefix: Explicitely excluded")
|
logger.info("$prefix: Explicitly excluded")
|
||||||
return@patch
|
return@patch
|
||||||
} else if ((!patch.include || args.defaultExclude) && !args.includedPatches.contains(patchName)) {
|
} else if ((!patch.include || args.defaultExclude) && !args.includedPatches.contains(patchName)) {
|
||||||
logger.info("$prefix: Not explicitly included")
|
logger.info("$prefix: Not explicitly included")
|
||||||
|
|||||||
Reference in New Issue
Block a user