Optimize code

This commit is contained in:
siritami
2023-05-15 15:49:34 +07:00
parent 08c54384c4
commit 9c69f73c07
6 changed files with 89 additions and 86 deletions

View File

@@ -16,8 +16,7 @@ exit 0
else
rm -f *.txt
dl_gh "revanced-patches revanced-integrations" "inotia00" "latest"
dl_gh "revanced-cli" "j-hc" "latest"
dl_gh "revanced-patches revanced-cli revanced-integrations" "inotia00" "latest"
# Patch YouTube Extended
get_patches_key "youtube-revanced-extended"
@@ -25,17 +24,18 @@ 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" "youtube-revanced-extended"
change_arch "youtube-revanced-extended" "youtube-revanced-extended-arm64-v8a" "--rip-lib x86_64 --rip-lib x86 --rip-lib armeabi-v7a"
change_arch "youtube-revanced-extended" "youtube-revanced-extended-armeabi-v7a" "--rip-lib x86_64 --rip-lib x86 --rip-lib arm64-v8a"
change_arch "youtube-revanced-extended" "youtube-revanced-extended-x86_64" "--rip-lib x86 --rip-lib armeabi-v7a --rip-lib arm64-v8a"
change_arch "youtube-revanced-extended" "youtube-revanced-extended-x86" "--rip-lib x86_64 --rip-lib armeabi-v7a --rip-lib arm64-v8a"
dl_gh "revanced-patches revanced-cli revanced-integrations" "inotia00" "latest"
# Patch YouTube Music Extended
get_patches_key "youtube-music-revanced-extended"
get_apk_arch "youtube-music" "youtube-music" "google-inc/youtube-music/youtube-music"
patch "youtube-music" "youtube-music-revanced-extended"
# Change architecture
rm -f revanced-cli*
dl_gh "revanced-cli" "j-hc" "latest"
for i in {0..3}; do
change_arch "youtube-revanced-extended" "youtube-revanced-extended-${archs[i]}" "$(gen_rip_libs ${libs[i]})"
done
ls revanced-patches*.jar >> revanced-extended-version.txt
fi