fix: improper use of mount variable

This commit is contained in:
Lucaskyy 2022-06-21 22:19:12 +02:00
parent 21747d5552
commit 31853fe539
No known key found for this signature in database
GPG Key ID: 1530BFF96D1EEB89

View File

@ -98,14 +98,15 @@ internal object MainCommand : Runnable {
Adb(outputFile, patcher.data.packageMetadata.packageName, args.deploy!!, !args.mount) Adb(outputFile, patcher.data.packageMetadata.packageName, args.deploy!!, !args.mount)
} }
val patchedFile = val patchedFile = if (args.mount) {
if (args.mount) outputFile else File(args.cacheDirectory).resolve("${outputFile.nameWithoutExtension}_raw.apk") File(args.cacheDirectory).resolve("${outputFile.nameWithoutExtension}_raw.apk")
} else outputFile
Patcher.start(patcher, patchedFile) Patcher.start(patcher, patchedFile)
println("[aligning & signing]") println("[aligning & signing]")
if (args.mount) { if (!args.mount) {
Signing.start( Signing.start(
patchedFile, patchedFile,
outputFile, outputFile,