diff --git a/build.sh b/build.sh index e50cc74..4cdbf44 100755 --- a/build.sh +++ b/build.sh @@ -143,7 +143,7 @@ for table_name in $(toml_get_table_names); do } || app_args[archive_dlurl]="" if [ -z "${app_args[dl_from]:-}" ]; then abort "ERROR: no 'apkmirror_dlurl', 'uptodown_dlurl' or 'apkmonk_dlurl' option was set for '$table_name'."; fi app_args[arch]=$(toml_get "$t" apkmirror-arch) || app_args[arch]="universal" - if [ "${app_args[arch]}" != "universal" ] && [[ "${app_args[arch]}" != "arm64-v8a"* ]] && [[ "${app_args[arch]}" != "arm-v7a"* ]]; then + if [ "${app_args[arch]}" != "both" ] && [ "${app_args[arch]}" != "universal" ] && [[ "${app_args[arch]}" != "arm64-v8a"* ]] && [[ "${app_args[arch]}" != "arm-v7a"* ]]; then abort "wrong arch '${app_args[arch]}' for '$table_name'" fi @@ -178,7 +178,10 @@ if [ -z "$(ls -A1 ${BUILD_DIR})" ]; then abort "All builds failed."; fi if youtube_t=$(toml_get_table "YouTube"); then youtube_mode=$(toml_get "$youtube_t" "build-mode") || youtube_mode="apk"; else youtube_mode="module"; fi if music_t=$(toml_get_table "Music"); then music_mode=$(toml_get "$music_t" "build-mode") || music_mode="apk"; else music_mode="module"; fi if [ "$youtube_mode" != module ] || [ "$music_mode" != module ]; then - log "\nInstall [Vanced Microg](https://github.com/TeamVanced/VancedMicroG/releases) for non-root YouTube or YT Music" + log "\nInstall [Vanced Microg](https://github.com/TeamVanced/VancedMicroG/releases) for non-root YouTube and YT Music" +fi +if [ "$youtube_mode" = module ] || [ "$music_mode" = module ]; then + log "Use [zygisk-detach](https://github.com/j-hc/zygisk-detach) module to detach YouTube and YT Music from Play Store" fi log "\n[revanced-magisk-module](https://github.com/j-hc/revanced-magisk-module)" log "\nChangelog:"