Skip to content

Commit

Permalink
fix: Copy APK to output path when it is not being signed
Browse files Browse the repository at this point in the history
When `--mount` is used, signing is skipped. For that reason the APK was never copied to the output path.
  • Loading branch information
oSumAtrIX committed Mar 12, 2024
1 parent d5c2740 commit 366f400
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/kotlin/app/revanced/cli/command/PatchCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,10 @@ internal object PatchCommand : Runnable {
// region Save
apk.copyTo(temporaryFilesPath.resolve(apk.name), overwrite = true).apply {
patcherResult.applyTo(this)
}.let {
}.let { patchedApkFile ->
if (!mount) {
sign(
it,
patchedApkFile,
outputFilePath,
ApkUtils.SigningOptions(
keystoreFilePath,
Expand All @@ -320,6 +320,8 @@ internal object PatchCommand : Runnable {
signer,
),
)
} else {
patchedApkFile.copyTo(outputFilePath, overwrite = true)
}
}

Expand Down

0 comments on commit 366f400

Please sign in to comment.