mirror of
https://github.com/revanced/revanced-cli.git
synced 2024-12-24 19:15:48 +01:00
fix: Move file to output even when mounting
This commit is contained in:
parent
b01fef730a
commit
59dfc988e3
@ -237,7 +237,7 @@ internal object PatchCommand : Runnable {
|
|||||||
|
|
||||||
// region Save
|
// region Save
|
||||||
|
|
||||||
val tempFile = resourceCachePath.resolve(apk.name).apply {
|
val alignedFile = resourceCachePath.resolve(apk.name).apply {
|
||||||
ApkUtils.copyAligned(apk, this, patcherResult)
|
ApkUtils.copyAligned(apk, this, patcherResult)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -245,7 +245,7 @@ internal object PatchCommand : Runnable {
|
|||||||
.resolve("${outputFilePath.nameWithoutExtension}.keystore")
|
.resolve("${outputFilePath.nameWithoutExtension}.keystore")
|
||||||
|
|
||||||
if (!mount) ApkUtils.sign(
|
if (!mount) ApkUtils.sign(
|
||||||
tempFile,
|
alignedFile,
|
||||||
outputFilePath,
|
outputFilePath,
|
||||||
ApkUtils.SigningOptions(
|
ApkUtils.SigningOptions(
|
||||||
keystoreFilePath,
|
keystoreFilePath,
|
||||||
@ -255,6 +255,7 @@ internal object PatchCommand : Runnable {
|
|||||||
signer
|
signer
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
else alignedFile.renameTo(outputFilePath)
|
||||||
|
|
||||||
// endregion
|
// endregion
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user