mirror of
https://github.com/revanced/revanced-cli.git
synced 2024-12-05 01:42:54 +01:00
refactor: move signing logs
This commit is contained in:
parent
c94471f464
commit
e5a37e0a5f
@ -106,8 +106,6 @@ internal object MainCommand : Runnable {
|
|||||||
|
|
||||||
Patcher.start(patcher, patchedFile)
|
Patcher.start(patcher, patchedFile)
|
||||||
|
|
||||||
println("[aligning & signing]")
|
|
||||||
|
|
||||||
if (!args.mount) {
|
if (!args.mount) {
|
||||||
Signing.start(
|
Signing.start(
|
||||||
patchedFile,
|
patchedFile,
|
||||||
|
@ -12,10 +12,12 @@ object Signing {
|
|||||||
val signedOutput = cacheDirectory.resolve("${outputFile.nameWithoutExtension}_signed.apk")
|
val signedOutput = cacheDirectory.resolve("${outputFile.nameWithoutExtension}_signed.apk")
|
||||||
|
|
||||||
// align the inputFile and write to alignedOutput
|
// align the inputFile and write to alignedOutput
|
||||||
|
println("[aligning]")
|
||||||
ZipAligner.align(inputFile, alignedOutput)
|
ZipAligner.align(inputFile, alignedOutput)
|
||||||
// sign the alignedOutput and write to signedOutput
|
// sign the alignedOutput and write to signedOutput
|
||||||
// the reason is, in case the signer fails
|
// the reason is, in case the signer fails
|
||||||
// it does not damage the output file
|
// it does not damage the output file
|
||||||
|
println("[signing]")
|
||||||
val keyStore = Signer(signingOptions).signApk(alignedOutput, signedOutput)
|
val keyStore = Signer(signingOptions).signApk(alignedOutput, signedOutput)
|
||||||
|
|
||||||
// afterwards copy over the file and the keystore to the output
|
// afterwards copy over the file and the keystore to the output
|
||||||
|
Loading…
Reference in New Issue
Block a user