Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
# [1.4.0-dev.5](https://github.com/MorpheApp/morphe-cli/compare/v1.4.0-dev.4...v1.4.0-dev.5) (2026-02-14)


### Bug Fixes

* Do not log patch name more than once if disabled ([#49](https://github.com/MorpheApp/morphe-cli/issues/49)) ([b980bb8](https://github.com/MorpheApp/morphe-cli/commit/b980bb8e0b3bf8eb4c7af1fe289ff1b63c437fa3))

# [1.4.0-dev.4](https://github.com/MorpheApp/morphe-cli/compare/v1.4.0-dev.3...v1.4.0-dev.4) (2026-02-14)


### Bug Fixes

* Allow enabling/disabling patches using case insensitive patch names ([#48](https://github.com/MorpheApp/morphe-cli/issues/48)) ([03a280a](https://github.com/MorpheApp/morphe-cli/commit/03a280abea6c9187eec22548707eb889b0252c3f))

# [1.4.0-dev.3](https://github.com/MorpheApp/morphe-cli/compare/v1.4.0-dev.2...v1.4.0-dev.3) (2026-02-12)


### Features

* Add `--continue-on-error` argument, return non zero exit code if patching fails ([#47](https://github.com/MorpheApp/morphe-cli/issues/47)) ([255646b](https://github.com/MorpheApp/morphe-cli/commit/255646b250237087ab7d7f9733daa6751b7e4016))

# [1.4.0-dev.2](https://github.com/MorpheApp/morphe-cli/compare/v1.4.0-dev.1...v1.4.0-dev.2) (2026-02-10)


### Features

* Add `--striplibs` argument to strip unwanted architectures ([#46](https://github.com/MorpheApp/morphe-cli/issues/46)) ([7442d94](https://github.com/MorpheApp/morphe-cli/commit/7442d942d392b3e1e9ce959c30db8460bffee8d6))

# [1.4.0-dev.1](https://github.com/MorpheApp/morphe-cli/compare/v1.3.0...v1.4.0-dev.1) (2026-02-07)


### Features

* Support patching APKM bundles ([#40](https://github.com/MorpheApp/morphe-cli/issues/40)) ([bfe43d0](https://github.com/MorpheApp/morphe-cli/commit/bfe43d0b747d0e336a3f36f048e85907a140f1fc))

# [1.3.0](https://github.com/MorpheApp/morphe-cli/compare/v1.2.0...v1.3.0) (2026-02-04)


Expand Down
8 changes: 8 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ outside this repository, and do not change the terms of the GPLv3 license.
For the full license text, see the LICENSE file or:
https://www.gnu.org/licenses/gpl-3.0.html

7b. Attribution Requirement
---------------------------

Any distributed source code that incorporates Morphe CLI,
including modified versions and derivative works, must retain this NOTICE file.

https://morphe.software

7c. Project Name Restriction
----------------------------

Expand Down
27 changes: 26 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,33 @@ repositories {
maven { url = uri("https://jitpack.io") }
}

val apkEditorLib by configurations.creating

val strippedApkEditorLib by tasks.registering(org.gradle.jvm.tasks.Jar::class) {
archiveFileName.set("APKEditor-cli.jar")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
doFirst {
from(apkEditorLib.resolve().map { zipTree(it) })
}
exclude(
"org/xmlpull/**",
"antlr/**",
"org/antlr/**",
"com/beust/jcommander/**",
"javax/annotation/**",
"smali.properties",
"baksmali.properties"
)
}

dependencies {
implementation(libs.morphe.patcher)
implementation(libs.morphe.library)
implementation(libs.kotlinx.coroutines.core)
implementation(libs.kotlinx.serialization.json)
implementation(libs.picocli)
apkEditorLib(files("$rootDir/libs/APKEditor-1.4.7.jar"))
implementation(files(strippedApkEditorLib))

testImplementation(libs.kotlin.test)
}
Expand Down Expand Up @@ -65,7 +86,11 @@ tasks {
}

shadowJar {
exclude("/prebuilt/linux/aapt", "/prebuilt/windows/aapt.exe", "/prebuilt/*/aapt_*")
exclude(
"/prebuilt/linux/aapt",
"/prebuilt/windows/aapt.exe",
"/prebuilt/*/aapt_*",
)
minimize {
exclude(dependency("org.bouncycastle:.*"))
exclude(dependency("app.morphe:morphe-patcher"))
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
org.gradle.parallel = true
org.gradle.caching = true
kotlin.code.style = official
version = 1.3.0
version = 1.4.0-dev.5
Binary file added libs/APKEditor-1.4.7.jar
Binary file not shown.
8 changes: 5 additions & 3 deletions src/main/kotlin/app/morphe/cli/command/MainCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ import app.morphe.library.logging.Logger
import picocli.CommandLine
import picocli.CommandLine.Command
import picocli.CommandLine.IVersionProvider
import java.util.*
import java.util.Properties
import kotlin.system.exitProcess

fun main(args: Array<String>) {
Logger.setDefault()
CommandLine(MainCommand).execute(*args).let(System::exit)
val exitCode = CommandLine(MainCommand).execute(*args)
exitProcess(exitCode)
}

private object CLIVersionProvider : IVersionProvider {
Expand Down Expand Up @@ -37,6 +39,6 @@ private object CLIVersionProvider : IVersionProvider {
ListPatchesCommand::class,
ListCompatibleVersions::class,
UtilityCommand::class,
],
]
)
private object MainCommand
Loading