Skip to content

Commit 4505091

Browse files
authored
feat: add command option unsigned (#20)
1 parent c675d5b commit 4505091

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/main/kotlin/app/morphe/cli/command/PatchCommand.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,12 @@ internal object PatchCommand : Runnable {
228228
this.aaptBinaryPath = aaptBinaryPath
229229
}
230230

231+
@CommandLine.Option(
232+
names = ["--unsigned"],
233+
description = ["Disable signing of the final apk."],
234+
)
235+
private var unsigned: Boolean = false
236+
231237
override fun run() {
232238
// region Setup
233239

@@ -332,7 +338,7 @@ internal object PatchCommand : Runnable {
332338
apk.copyTo(temporaryFilesPath.resolve(apk.name), overwrite = true).apply {
333339
patcherResult.applyTo(this)
334340
}.let { patchedApkFile ->
335-
if (!mount) {
341+
if (!mount && !unsigned) {
336342
ApkUtils.signApk(
337343
patchedApkFile,
338344
outputFilePath,

0 commit comments

Comments
 (0)