fix: do not use absolute path from custom AAPT2 binary option

This commit is contained in:
oSumAtrIX 2023-08-23 04:29:07 +02:00
parent 0dcd838de3
commit a9c2a5f096
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -179,7 +179,7 @@ internal object PatchCommand: Runnable {
PatcherOptions( PatcherOptions(
apk, apk,
resourceCachePath, resourceCachePath,
aaptBinaryPath.absolutePath, aaptBinaryPath.path,
resourceCachePath.absolutePath, resourceCachePath.absolutePath,
PatcherLogger PatcherLogger
) )
@ -291,8 +291,8 @@ internal object PatchCommand: Runnable {
if (!matchesVersion) return@patch logger.warn( if (!matchesVersion) return@patch logger.warn(
"${patch.patchName} is incompatible with version $packageVersion. " + "${patch.patchName} is incompatible with version $packageVersion. " +
"This patch is only compatible with version " + "This patch is only compatible with version " +
packages.joinToString(";") { `package` -> packages.joinToString(";") { pkg ->
"${`package`.name}: ${`package`.versions.joinToString(", ")}" "${pkg.name}: ${pkg.versions.joinToString(", ")}"
} }
) )