mirror of
https://github.com/revanced/revanced-cli.git
synced 2024-12-12 21:27:46 +01:00
fix: improper use of mount variable
This commit is contained in:
parent
21747d5552
commit
31853fe539
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user