File tree 1 file changed +3
-2
lines changed
src/main/kotlin/app/revanced/cli/command
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -237,15 +237,15 @@ internal object PatchCommand : Runnable {
237
237
238
238
// region Save
239
239
240
- val tempFile = resourceCachePath.resolve(apk.name).apply {
240
+ val alignedFile = resourceCachePath.resolve(apk.name).apply {
241
241
ApkUtils .copyAligned(apk, this , patcherResult)
242
242
}
243
243
244
244
val keystoreFilePath = keystoreFilePath ? : outputFilePath.absoluteFile.parentFile
245
245
.resolve(" ${outputFilePath.nameWithoutExtension} .keystore" )
246
246
247
247
if (! mount) ApkUtils .sign(
248
- tempFile ,
248
+ alignedFile ,
249
249
outputFilePath,
250
250
ApkUtils .SigningOptions (
251
251
keystoreFilePath,
@@ -255,6 +255,7 @@ internal object PatchCommand : Runnable {
255
255
signer
256
256
)
257
257
)
258
+ else alignedFile.renameTo(outputFilePath)
258
259
259
260
// endregion
260
261
You can’t perform that action at this time.
0 commit comments