mirror of
https://github.com/revanced/revanced-cli.git
synced 2025-01-22 08:57:32 +01:00
fix: Copy APK to output path when it is not being signed
When `--mount` is used, signing is skipped. For that reason the APK was never copied to the output path.
This commit is contained in:
parent
d5c27408f3
commit
366f400c5a
@ -307,10 +307,10 @@ internal object PatchCommand : Runnable {
|
|||||||
// region Save
|
// region Save
|
||||||
apk.copyTo(temporaryFilesPath.resolve(apk.name), overwrite = true).apply {
|
apk.copyTo(temporaryFilesPath.resolve(apk.name), overwrite = true).apply {
|
||||||
patcherResult.applyTo(this)
|
patcherResult.applyTo(this)
|
||||||
}.let {
|
}.let { patchedApkFile ->
|
||||||
if (!mount) {
|
if (!mount) {
|
||||||
sign(
|
sign(
|
||||||
it,
|
patchedApkFile,
|
||||||
outputFilePath,
|
outputFilePath,
|
||||||
ApkUtils.SigningOptions(
|
ApkUtils.SigningOptions(
|
||||||
keystoreFilePath,
|
keystoreFilePath,
|
||||||
@ -320,6 +320,8 @@ internal object PatchCommand : Runnable {
|
|||||||
signer,
|
signer,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
} else {
|
||||||
|
patchedApkFile.copyTo(outputFilePath, overwrite = true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user