We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unsigned
1 parent c675d5b commit 4505091Copy full SHA for 4505091
1 file changed
src/main/kotlin/app/morphe/cli/command/PatchCommand.kt
@@ -228,6 +228,12 @@ internal object PatchCommand : Runnable {
228
this.aaptBinaryPath = aaptBinaryPath
229
}
230
231
+ @CommandLine.Option(
232
+ names = ["--unsigned"],
233
+ description = ["Disable signing of the final apk."],
234
+ )
235
+ private var unsigned: Boolean = false
236
+
237
override fun run() {
238
// region Setup
239
@@ -332,7 +338,7 @@ internal object PatchCommand : Runnable {
332
338
apk.copyTo(temporaryFilesPath.resolve(apk.name), overwrite = true).apply {
333
339
patcherResult.applyTo(this)
334
340
}.let { patchedApkFile ->
335
- if (!mount) {
341
+ if (!mount && !unsigned) {
336
342
ApkUtils.signApk(
337
343
patchedApkFile,
344
outputFilePath,
0 commit comments