mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 16:17:40 +00:00
bump compatibility latest rve-cli
This commit is contained in:
@@ -10,8 +10,7 @@ checker "inotia00/revanced-patches" "revanced-extended"
|
||||
#################################################
|
||||
|
||||
# Download requirements
|
||||
dl_gh "revanced-patches revanced-integrations" "inotia00" "latest"
|
||||
dl_gh "revanced-cli" "revanced" "latest"
|
||||
dl_gh "revanced-patches revanced-integrations revanced-cli" "inotia00" "latest"
|
||||
|
||||
#################################################
|
||||
|
||||
@@ -19,28 +18,30 @@ dl_gh "revanced-cli" "revanced" "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" "inotia"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch YouTube Music Extended:
|
||||
# Arm64-v8a
|
||||
get_patches_key "youtube-music-revanced-extended"
|
||||
get_ver "Hide music ads" "com.google.android.apps.youtube.music"
|
||||
version=6.23.55
|
||||
#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" "inotia"
|
||||
# Armeabi-v7a
|
||||
get_patches_key "youtube-music-revanced-extended"
|
||||
get_ver "Hide music ads" "com.google.android.apps.youtube.music"
|
||||
version=6.23.55
|
||||
#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" "inotia"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch Reddit:
|
||||
get_patches_key "reddit"
|
||||
get_apk "reddit" "reddit" "redditinc/reddit/reddit"
|
||||
patch "reddit" "revanced-extended"
|
||||
patch "reddit" "revanced-extended" "inotia"
|
||||
|
||||
#################################################
|
||||
|
||||
|
||||
@@ -129,24 +129,29 @@ get_apk() {
|
||||
patch() {
|
||||
if [ -f "$1.apk" ]; then
|
||||
local p b m ks a
|
||||
if [[ $(ls revanced-cli-*.jar) =~ revanced-cli-([0-9]+) ]]; then
|
||||
num=${BASH_REMATCH[1]}
|
||||
if [ $num -ge 4 ]; then
|
||||
p="patch " b="--patch-bundle" m="--merge" a="" ks="ks"
|
||||
echo "Patching with Revanced-cli version 4+"
|
||||
elif [ $num -eq 3 ]; then
|
||||
p="patch " b="--patch-bundle" m="--merge" a="" ks="_ks"
|
||||
echo "Patching with Revanced-cli version 3"
|
||||
elif [ $num -eq 2 ]; then
|
||||
p="" b="-b" m="-m" a="-a " ks="_ks"
|
||||
echo "Patching with Revanced-cli version 2"
|
||||
if [ "$3" = inotia ]; then
|
||||
p="patch " b="--patch-bundle" m="--merge" a="" ks="_ks"
|
||||
echo "Patching with Revanced-cli inotia"
|
||||
else
|
||||
if [[ $(ls revanced-cli-*.jar) =~ revanced-cli-([0-9]+) ]]; then
|
||||
num=${BASH_REMATCH[1]}
|
||||
if [ $num -ge 4 ]; then
|
||||
p="patch " b="--patch-bundle" m="--merge" a="" ks="ks"
|
||||
echo "Patching with Revanced-cli version 4+"
|
||||
elif [ $num -eq 3 ]; then
|
||||
p="patch " b="--patch-bundle" m="--merge" a="" ks="_ks"
|
||||
echo "Patching with Revanced-cli version 3"
|
||||
elif [ $num -eq 2 ]; then
|
||||
p="" b="-b" m="-m" a="-a " ks="_ks"
|
||||
echo "Patching with Revanced-cli version 2"
|
||||
else
|
||||
echo "No revanced-cli supported"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "No revanced-cli supported"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "No revanced-cli supported"
|
||||
exit 1
|
||||
fi
|
||||
java -jar revanced-cli*.jar $p\
|
||||
$b revanced-patches*.jar \
|
||||
|
||||
Reference in New Issue
Block a user