mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 16:17:40 +00:00
Fix command line
Change command line, fix bugs follow Revanced cli 3.0
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user