Fix command line

Change command line, fix bugs follow Revanced cli 3.0
This commit is contained in:
siritami
2023-08-27 19:01:27 +07:00
parent ebe74ae78f
commit 3d21832e07
5 changed files with 35 additions and 22 deletions

View File

@@ -141,8 +141,8 @@ get_apk() {
#################################################
# Patching apps with Revanced CLI:
patch() {
# Patching apps with Revanced CLI (old):
_patch() {
if [ -f "$1.apk" ]; then
java -jar revanced-cli*.jar \
-m revanced-integrations*.apk \
@@ -160,6 +160,26 @@ patch() {
fi
}
# Patching apps with Revanced CLI:
patch() {
if [ -f "$1.apk" ]; then
java -jar revanced-cli*.jar patch \
--patch-bundle revanced-patches*.jar \
--merge revanced-integrations*.apk \
${EXCLUDE_PATCHES[@]} \
${INCLUDE_PATCHES[@]} \
--keystore=./src/ks.keystore \
--out=./build/$2.apk \
$1.apk
unset version
unset EXCLUDE_PATCHES
unset INCLUDE_PATCHES
else
exit 1
fi
}
#################################################
# Split architectures using Revanced CLI, created by j-hc: