mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 16:17:40 +00:00
Because the patching time of revanced.sh is too long, I split it into 3 .sh files and ran them with 3 more runners to speed up the patching time.
56 lines
1.8 KiB
Bash
56 lines
1.8 KiB
Bash
#!/bin/bash
|
|
# Revanced Extended build
|
|
source src/build/utils.sh
|
|
|
|
#################################################
|
|
|
|
# Checking new patch
|
|
checker "inotia00/revanced-patches" "revanced-extended"
|
|
|
|
#################################################
|
|
|
|
# Download requirements
|
|
dl_gh "revanced-patches revanced-cli revanced-integrations" "inotia00" "latest"
|
|
|
|
#################################################
|
|
|
|
# Patch YouTube Extended:
|
|
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 Music Extended:
|
|
# Arm64-v8a
|
|
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"
|
|
# 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 Reddit:
|
|
get_patches_key "reddit"
|
|
get_apk "reddit" "reddit" "redditinc/reddit/reddit"
|
|
patch "reddit" "revanced-extended"
|
|
|
|
#################################################
|
|
|
|
# Split architecture:
|
|
rm -f revanced-cli* revanced-patches*.jar patches.json
|
|
dl_gh "revanced-cli" "j-hc" "latest"
|
|
dl_gh "revanced-patches" "revanced" "latest"
|
|
# Split architecture Youtube:
|
|
for i in {0..3}; do
|
|
split_arch "youtube-revanced-extended" "youtube-${archs[i]}-revanced-extended" "$(gen_rip_libs ${libs[i]})"
|
|
done
|
|
|
|
#################################################
|