bump compatibility RVE cli v4.0.2

This commit is contained in:
siritami
2023-10-10 11:33:26 +07:00
parent efd981e3d0
commit e4832e5fd9
2 changed files with 21 additions and 20 deletions

View File

@@ -18,7 +18,7 @@ dl_gh "revanced-patches revanced-cli revanced-integrations" "inotia00" "latest"
get_patches_key "youtube-revanced-extended"
get_ver "Hide general ads" "com.google.android.youtube"
get_apk "youtube" "youtube" "google-inc/youtube/youtube"
patch "youtube" "revanced-extended"
patch "youtube" "revanced-extended" "rve"
#################################################
@@ -27,19 +27,19 @@ patch "youtube" "revanced-extended"
get_patches_key "youtube-music-revanced-extended"
get_ver "Hide music ads" "com.google.android.apps.youtube.music"
get_apk "youtube-music-arm64-v8a" "youtube-music" "google-inc/youtube-music/youtube-music" "arm64-v8a"
patch "youtube-music-arm64-v8a" "revanced-extended"
patch "youtube-music-arm64-v8a" "revanced-extended" "rve"
# Armeabi-v7a
get_patches_key "youtube-music-revanced-extended"
get_ver "Hide music ads" "com.google.android.apps.youtube.music"
get_apk "youtube-music-armeabi-v7a" "youtube-music" "google-inc/youtube-music/youtube-music" "armeabi-v7a"
patch "youtube-music-armeabi-v7a" "revanced-extended"
patch "youtube-music-armeabi-v7a" "revanced-extended" "rve"
#################################################
# Patch Reddit:
get_patches_key "reddit"
get_apk "reddit" "reddit" "redditinc/reddit/reddit"
patch "reddit" "revanced-extended"
patch "reddit" "revanced-extended" "rve"
#################################################

View File

@@ -127,8 +127,8 @@ get_apk() {
# Patching apps with Revanced CLI:
patch() {
if [ -f "$1.apk" ]; then
local p b m ks a
if [[ -z $3 ]]; then
if [[ $(ls revanced-cli-*.jar) =~ revanced-cli-([0-9]+) ]]; then
num=${BASH_REMATCH[1]}
if [ $num -ge 4 ]; then
@@ -148,6 +148,10 @@ patch() {
echo "No revanced-cli supported"
exit 1
fi
else
echo "Patching with Revanced-cli inotia version 4+"
p="patch " b="--patch-bundle" m="--merge" a="" ks="_ks"
fi
java -jar revanced-cli*.jar $p\
$b revanced-patches*.jar \
$m revanced-integrations*.apk \
@@ -160,9 +164,6 @@ patch() {
unset version
unset EXCLUDE_PATCHES
unset INCLUDE_PATCHES
else
exit 1
fi
}
#################################################