refactor: move signing logs

This commit is contained in:
Lucaskyy 2022-06-22 15:00:24 +02:00
parent c94471f464
commit e5a37e0a5f
No known key found for this signature in database
GPG Key ID: 1530BFF96D1EEB89
2 changed files with 2 additions and 2 deletions

View File

@ -106,8 +106,6 @@ internal object MainCommand : Runnable {
Patcher.start(patcher, patchedFile)
println("[aligning & signing]")
if (!args.mount) {
Signing.start(
patchedFile,

View File

@ -12,10 +12,12 @@ object Signing {
val signedOutput = cacheDirectory.resolve("${outputFile.nameWithoutExtension}_signed.apk")
// align the inputFile and write to alignedOutput
println("[aligning]")
ZipAligner.align(inputFile, alignedOutput)
// sign the alignedOutput and write to signedOutput
// the reason is, in case the signer fails
// it does not damage the output file
println("[signing]")
val keyStore = Signer(signingOptions).signApk(alignedOutput, signedOutput)
// afterwards copy over the file and the keystore to the output