mirror of
https://github.com/revanced/revanced-cli.git
synced 2024-11-19 01:59:25 +01:00
feat: use new patch naming convention
This commit is contained in:
parent
9c148c96bf
commit
e4908c7105
@ -35,7 +35,7 @@ Learn how to ReVanced CLI.
|
|||||||
```bash
|
```bash
|
||||||
java -jar revanced-cli.jar
|
java -jar revanced-cli.jar
|
||||||
-b revanced-patches.jar \
|
-b revanced-patches.jar \
|
||||||
-l
|
-l # Names of all patches will be in kebab-case
|
||||||
```
|
```
|
||||||
|
|
||||||
- ### 💉 Use ReVanced CLI to patch an APK file but deploy without root permissions
|
- ### 💉 Use ReVanced CLI to patch an APK file but deploy without root permissions
|
||||||
|
@ -241,7 +241,7 @@ internal object MainCommand : Runnable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add patch name
|
// Add patch name
|
||||||
val patchName = patch.patchName.padStart(25)
|
val patchName = patch.patchName.lowercase().replace("-", " ").padStart(25)
|
||||||
append(patchName)
|
append(patchName)
|
||||||
|
|
||||||
// Add description if flag is set.
|
// Add description if flag is set.
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package app.revanced.utils.patcher
|
package app.revanced.utils.patcher
|
||||||
|
|
||||||
import app.revanced.cli.command.MainCommand
|
|
||||||
import app.revanced.cli.command.MainCommand.args
|
import app.revanced.cli.command.MainCommand.args
|
||||||
import app.revanced.cli.command.MainCommand.logger
|
import app.revanced.cli.command.MainCommand.logger
|
||||||
import app.revanced.cli.command.PatchList
|
import app.revanced.cli.command.PatchList
|
||||||
@ -18,8 +17,8 @@ fun Patcher.addPatchesFiltered(allPatches: PatchList) {
|
|||||||
val includedPatches = mutableListOf<Class<out Patch<Context>>>()
|
val includedPatches = mutableListOf<Class<out Patch<Context>>>()
|
||||||
allPatches.forEach patchLoop@{ patch ->
|
allPatches.forEach patchLoop@{ patch ->
|
||||||
val compatiblePackages = patch.compatiblePackages
|
val compatiblePackages = patch.compatiblePackages
|
||||||
val patchName = patch.patchName
|
val patchName = patch.patchName.lowercase().replace(" ", "-")
|
||||||
val args = MainCommand.args.patchArgs?.patchingArgs!!
|
val args = args.patchArgs?.patchingArgs!!
|
||||||
|
|
||||||
val prefix = "Skipping $patchName"
|
val prefix = "Skipping $patchName"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user