mirror of
https://github.com/ReVanced/revanced-cli.git
synced 2026-01-17 16:33:58 +00:00
Compare commits
6 Commits
v3.0.0-dev
...
v3.0.0-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c2da04a834 | ||
|
|
f556909b9e | ||
|
|
1fa3dd7b8c | ||
|
|
1fcc591222 | ||
|
|
1fd3b83d46 | ||
|
|
7ec9040d41 |
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -36,7 +36,7 @@ jobs:
|
|||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: ./gradlew clean --no-daemon
|
run: ./gradlew build
|
||||||
- name: Setup semantic-release
|
- name: Setup semantic-release
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Release
|
- name: Release
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
# [3.0.0-dev.3](https://github.com/ReVanced/revanced-cli/compare/v3.0.0-dev.2...v3.0.0-dev.3) (2023-08-23)
|
||||||
|
|
||||||
|
# [3.0.0-dev.2](https://github.com/ReVanced/revanced-cli/compare/v3.0.0-dev.1...v3.0.0-dev.2) (2023-08-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* specify correct class containing entry-point ([1fcc591](https://github.com/ReVanced/revanced-cli/commit/1fcc591222ab67112f2b78174a8b94106846838c))
|
||||||
|
|
||||||
# [3.0.0-dev.1](https://github.com/ReVanced/revanced-cli/compare/v2.23.0-dev.5...v3.0.0-dev.1) (2023-08-23)
|
# [3.0.0-dev.1](https://github.com/ReVanced/revanced-cli/compare/v2.23.0-dev.5...v3.0.0-dev.1) (2023-08-23)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -31,13 +31,9 @@ tasks {
|
|||||||
expand("projectVersion" to project.version)
|
expand("projectVersion" to project.version)
|
||||||
}
|
}
|
||||||
|
|
||||||
build {
|
|
||||||
dependsOn(shadowJar)
|
|
||||||
}
|
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes("Main-Class" to "app.revanced.cli.main.MainKt")
|
attributes("Main-Class" to "app.revanced.cli.command.MainCommandKt")
|
||||||
}
|
}
|
||||||
minimize {
|
minimize {
|
||||||
exclude(dependency("org.jetbrains.kotlin:.*"))
|
exclude(dependency("org.jetbrains.kotlin:.*"))
|
||||||
@@ -46,6 +42,10 @@ tasks {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
build {
|
||||||
|
dependsOn(shadowJar)
|
||||||
|
}
|
||||||
|
|
||||||
// Dummy task to fix the Gradle semantic-release plugin.
|
// Dummy task to fix the Gradle semantic-release plugin.
|
||||||
// Remove this if you forked it to support building only.
|
// Remove this if you forked it to support building only.
|
||||||
// Tracking issue: https://github.com/KengoTODA/gradle-semantic-release-plugin/issues/435
|
// Tracking issue: https://github.com/KengoTODA/gradle-semantic-release-plugin/issues/435
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ Learn how to ReVanced CLI.
|
|||||||
adb shell su -c exit
|
adb shell su -c exit
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Get your device serial
|
2. Get your device's serial
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
adb devices
|
adb devices
|
||||||
@@ -54,9 +54,7 @@ Learn how to ReVanced CLI.
|
|||||||
```
|
```
|
||||||
|
|
||||||
> **Note**: A default `options.json` file will be automatically generated, if it does not exist
|
> **Note**: A default `options.json` file will be automatically generated, if it does not exist
|
||||||
without any need of intervention when using the `patch` command.
|
without any need for intervention when using the `patch` command.
|
||||||
|
|
||||||
```bash
|
|
||||||
|
|
||||||
- ### 💉 Use ReVanced CLI to patch an APK file but install without root permissions
|
- ### 💉 Use ReVanced CLI to patch an APK file but install without root permissions
|
||||||
|
|
||||||
@@ -91,7 +89,7 @@ Learn how to ReVanced CLI.
|
|||||||
Supply them with the option `-m`. If any patches accepted by ReVanced Patcher require ReVanced Integrations,
|
Supply them with the option `-m`. If any patches accepted by ReVanced Patcher require ReVanced Integrations,
|
||||||
they will be merged into the APK file automatically.
|
they will be merged into the APK file automatically.
|
||||||
|
|
||||||
- ### 🗑️ Uninstall a patched
|
- ### 🗑️ Uninstall a patched APK file
|
||||||
```bash
|
```bash
|
||||||
java -jar revanced-cli.jar uninstall \
|
java -jar revanced-cli.jar uninstall \
|
||||||
--package-name <package-name> \
|
--package-name <package-name> \
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
org.gradle.parallel = true
|
org.gradle.parallel = true
|
||||||
org.gradle.caching = true
|
org.gradle.caching = true
|
||||||
kotlin.code.style = official
|
kotlin.code.style = official
|
||||||
version = 3.0.0-dev.1
|
version = 3.0.0-dev.3
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import picocli.CommandLine.IVersionProvider
|
|||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
CommandLine(Main).execute(*args)
|
CommandLine(MainCommand).execute(*args)
|
||||||
}
|
}
|
||||||
|
|
||||||
internal typealias PatchList = List<PatchClass>
|
internal typealias PatchList = List<PatchClass>
|
||||||
@@ -18,7 +18,7 @@ internal val logger = DefaultCliLogger()
|
|||||||
object CLIVersionProvider : IVersionProvider {
|
object CLIVersionProvider : IVersionProvider {
|
||||||
override fun getVersion(): Array<String> {
|
override fun getVersion(): Array<String> {
|
||||||
Properties().apply {
|
Properties().apply {
|
||||||
load(Main::class.java.getResourceAsStream("/app/revanced/cli/version.properties"))
|
load(MainCommand::class.java.getResourceAsStream("/app/revanced/cli/version.properties"))
|
||||||
}.let {
|
}.let {
|
||||||
return arrayOf("ReVanced CLI v${it.getProperty("version")}")
|
return arrayOf("ReVanced CLI v${it.getProperty("version")}")
|
||||||
}
|
}
|
||||||
@@ -37,4 +37,4 @@ object CLIVersionProvider : IVersionProvider {
|
|||||||
OptionsCommand::class,
|
OptionsCommand::class,
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
internal object Main
|
internal object MainCommand
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
package app.revanced.cli.logging.impl
|
package app.revanced.cli.logging.impl
|
||||||
|
|
||||||
import app.revanced.cli.command.Main
|
import app.revanced.cli.command.MainCommand
|
||||||
import app.revanced.cli.logging.CliLogger
|
import app.revanced.cli.logging.CliLogger
|
||||||
import java.util.logging.Logger
|
import java.util.logging.Logger
|
||||||
import java.util.logging.SimpleFormatter
|
import java.util.logging.SimpleFormatter
|
||||||
|
|
||||||
internal class DefaultCliLogger(
|
internal class DefaultCliLogger(
|
||||||
private val logger: Logger = Logger.getLogger(Main::class.java.name),
|
private val logger: Logger = Logger.getLogger(MainCommand::class.java.name),
|
||||||
private val errorLogger: Logger = Logger.getLogger(logger.name + "Err")
|
private val errorLogger: Logger = Logger.getLogger(logger.name + "Err")
|
||||||
) : CliLogger {
|
) : CliLogger {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user