mirror of
https://github.com/revanced/revanced-cli.git
synced 2025-01-06 01:05:50 +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
|
||||
apk.copyTo(temporaryFilesPath.resolve(apk.name), overwrite = true).apply {
|
||||
patcherResult.applyTo(this)
|
||||
}.let {
|
||||
}.let { patchedApkFile ->
|
||||
if (!mount) {
|
||||
sign(
|
||||
it,
|
||||
patchedApkFile,
|
||||
outputFilePath,
|
||||
ApkUtils.SigningOptions(
|
||||
keystoreFilePath,
|
||||
@ -320,6 +320,8 @@ internal object PatchCommand : Runnable {
|
||||
signer,
|
||||
),
|
||||
)
|
||||
} else {
|
||||
patchedApkFile.copyTo(outputFilePath, overwrite = true)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user