added youtube lite version

- Split APKs no longer use the Revanced CLI to split; they are now directly patched from split APKs created with APKEditor. This means a smaller APK file size.
- The added lite version is a version with unnecessary features removed. For example, it might only have an English interface and remove unused screen DPI from split APKs.
- Improve workflow
This commit is contained in:
Fioren
2024-10-27 21:12:30 +07:00
parent feb192f825
commit 5c08015e38
21 changed files with 481 additions and 394 deletions

View File

@@ -0,0 +1,68 @@
#!/bin/bash
# Revanced Extended forked by Anddea build
source src/build/utils.sh
# Download requirements
revanced_dl(){
dl_gh "revanced-patches revanced-integrations" "anddea" "latest"
dl_gh "revanced-cli" "inotia00" "latest"
}
1() {
revanced_dl
# Patch YouTube:
get_patches_key "youtube-rve-anddea"
get_apk "com.google.android.youtube" "youtube-beta" "youtube" "google-inc/youtube/youtube" "Bundle_extract"
split_editor "youtube-beta" "youtube-beta"
patch "youtube-beta" "anddea" "inotia"
# Patch Youtube Arm64-v8a
get_patches_key "youtube-rve-anddea"
split_editor "youtube-beta" "youtube-beta-arm64-v8a" "exclude" "split_config.armeabi_v7a split_config.x86 split_config.x86_64"
patch "youtube-beta-arm64-v8a" "anddea" "inotia"
# Patch Youtube Armeabi-v7a
get_patches_key "youtube-rve-anddea"
split_editor "youtube-beta" "youtube-beta-armeabi-v7a" "exclude" "split_config.arm64_v8a split_config.x86 split_config.x86_64"
patch "youtube-beta-armeabi-v7a" "anddea" "inotia"
# Patch Youtube x86
get_patches_key "youtube-rve-anddea"
split_editor "youtube-beta" "youtube-beta-x86" "exclude" "split_config.arm64_v8a split_config.armeabi_v7a split_config.x86_64"
patch "youtube-beta-x86" "anddea" "inotia"
# Patch Youtube x86_64
get_patches_key "youtube-rve-anddea"
split_editor "youtube-beta" "youtube-beta-x86_64" "exclude" "split_config.arm64_v8a split_config.armeabi_v7a split_config.x86"
patch "youtube-beta-x86_64" "anddea" "inotia"
}
2() {
revanced_dl
# Patch YouTube Music Extended:
# Arm64-v8a
get_patches_key "youtube-music-rve-anddea"
get_apk "com.google.android.apps.youtube.music" "youtube-music-beta-arm64-v8a" "youtube-music" "google-inc/youtube-music/youtube-music" "arm64-v8a"
patch "youtube-music-beta-arm64-v8a" "anddea" "inotia"
# Armeabi-v7a
get_patches_key "youtube-music-rve-anddea"
get_apk "com.google.android.apps.youtube.music" "youtube-music-beta-armeabi-v7a" "youtube-music" "google-inc/youtube-music/youtube-music" "armeabi-v7a"
patch "youtube-music-beta-armeabi-v7a" "anddea" "inotia"
}
3() {
revanced_dl
get_apk "com.google.android.youtube" "youtube-lite-beta" "youtube" "google-inc/youtube/youtube" "Bundle_extract"
# Patch YouTube Lite Arm64-v8a:
get_patches_key "youtube-rve-anddea"
split_editor "youtube-lite-beta" "youtube-lite-beta-arm64-v8a" "include" "split_config.arm64_v8a split_config.en split_config.xhdpi split_config.xxxhdpi"
patch "youtube-lite-beta-arm64-v8a" "anddea" "inotia"
# Patch YouTube Lite Armeabi-v7a:
get_patches_key "youtube-rve-anddea"
split_editor "youtube-lite-beta" "youtube-lite-beta-armeabi-v7a" "include" "split_config.armeabi_v7a split_config.en split_config.xhdpi split_config.xxxhdpi"
patch "youtube-lite-beta-armeabi-v7a" "anddea" "inotia"
}
case "$1" in
1)
1
;;
2)
2
;;
3)
3
;;
esac