From a9c2a5f096627dbbf8ab1b8da26fb14529ce6bc3 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 23 Aug 2023 04:29:07 +0200 Subject: [PATCH] fix: do not use absolute path from custom AAPT2 binary option --- src/main/kotlin/app/revanced/cli/command/PatchCommand.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt b/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt index 1298ac2..14ddf82 100644 --- a/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt +++ b/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt @@ -179,7 +179,7 @@ internal object PatchCommand: Runnable { PatcherOptions( apk, resourceCachePath, - aaptBinaryPath.absolutePath, + aaptBinaryPath.path, resourceCachePath.absolutePath, PatcherLogger ) @@ -291,8 +291,8 @@ internal object PatchCommand: Runnable { if (!matchesVersion) return@patch logger.warn( "${patch.patchName} is incompatible with version $packageVersion. " + "This patch is only compatible with version " + - packages.joinToString(";") { `package` -> - "${`package`.name}: ${`package`.versions.joinToString(", ")}" + packages.joinToString(";") { pkg -> + "${pkg.name}: ${pkg.versions.joinToString(", ")}" } )