diff --git a/CONFIG.md b/CONFIG.md index 068e365..31fb00e 100755 --- a/CONFIG.md +++ b/CONFIG.md @@ -41,5 +41,5 @@ apkmonk-dlurl = "https://www.apkmonk.com/app/com.app.app/" module-prop-name = "some-app-magisk" # magisk module prop name. merge-integrations = false # set false to never merge even when needed. default: true apkmirror-dpi = "360-480dpi" # used to select apk variant from apkmirror. default: nodpi -apkmirror-arch = "arm64-v8a" # 'arm64-v8a', 'arm-v7a', 'all', 'both'. 'both' downloads both arm64-v8a and arm-v7a. default: all +arch = "arm64-v8a" # 'arm64-v8a', 'arm-v7a', 'all', 'both'. 'both' downloads both arm64-v8a and arm-v7a. default: all ``` diff --git a/build.sh b/build.sh index d274ea0..c4040d8 100755 --- a/build.sh +++ b/build.sh @@ -146,7 +146,7 @@ for table_name in $(toml_get_table_names); do app_args[dl_from]=archive } || 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]="all" + app_args[arch]=$(toml_get "$t" arch) || app_args[arch]="all" if [ "${app_args[arch]}" != "both" ] && [ "${app_args[arch]}" != "all" ] && [[ "${app_args[arch]}" != "arm64-v8a"* ]] && [[ "${app_args[arch]}" != "arm-v7a"* ]]; then abort "wrong arch '${app_args[arch]}' for '$table_name'" fi @@ -179,14 +179,8 @@ wait rm -rf temp/tmp.* 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 and YT Music" -fi -if [ "$youtube_mode" != apk ] || [ "$music_mode" != apk ]; then - log "Use [zygisk-detach](https://github.com/j-hc/zygisk-detach) module to detach YouTube and YT Music from Play Store" -fi +log "\nInstall [Vanced Microg](https://github.com/TeamVanced/VancedMicroG/releases) for non-root YouTube and YT Music" +log "Use [zygisk-detach](https://github.com/j-hc/zygisk-detach) module to detach YouTube and YT Music from Play Store" log "\n[revanced-magisk-module](https://github.com/j-hc/revanced-magisk-module)" log "\nChangelog:" log "$(cat $TEMP_DIR/*-rv/changelog.md)" diff --git a/config.toml b/config.toml index a9490b0..7746323 100755 --- a/config.toml +++ b/config.toml @@ -16,7 +16,7 @@ archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.y [Music] build-mode = "both" archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.apps.youtube.music" -apkmirror-arch = "both" +arch = "both" [Music-Extended] app-name = "Music" @@ -25,8 +25,8 @@ integrations-source = "inotia00/revanced-integrations" cli-source = "inotia00/revanced-cli" rv-brand = "ReVanced Extended" build-mode = "both" -apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube-music/" -apkmirror-arch = "both" +archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.apps.youtube.music" +arch = "both" [YouTube-Extended] app-name = "YouTube" @@ -35,7 +35,7 @@ integrations-source = "inotia00/revanced-integrations" cli-source = "inotia00/revanced-cli" rv-brand = "ReVanced Extended" build-mode = "both" -apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube/" +archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.youtube" [Twitter] build-mode = "apk" @@ -53,7 +53,7 @@ archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.reddit.frontpage [Messenger] enabled = false apkmirror-dlurl = "https://www.apkmirror.com/apk/facebook-2/messenger/" -apkmirror-arch = "arm64-v8a" +arch = "arm64-v8a" [Spotify] enabled = false @@ -62,4 +62,3 @@ uptodown-dlurl = "https://spotify.en.uptodown.com/android" [IconPackStudio] enabled = false apkmirror-dlurl = "https://www.apkmirror.com/apk/smart-launcher-team/icon-pack-studio/" - diff --git a/utils.sh b/utils.sh index 82b0434..233d580 100755 --- a/utils.sh +++ b/utils.sh @@ -411,7 +411,7 @@ build_rv() { if [ "${args[merge_integrations]}" = true ]; then p_patcher_args+=("-m ${args[integ]}"); fi local microg_patch - microg_patch=$(jq -r ".[] | select(.compatiblePackages // [] | .[] | .name==\"${pkg_name}\") | .name" "${args[ptjs]}" | grep -iF microg || :) + microg_patch=$(jq -r ".[] | select(.compatiblePackages // [] | .[] | .name==\"${pkg_name}\") | .name" "${args[ptjs]}" | grep -iF gmscore || :) if [ -n "$microg_patch" ] && [[ ${p_patcher_args[*]} =~ $microg_patch ]]; then epr "You cant include/exclude microg patches as that's done by rvmm builder automatically." p_patcher_args=("${p_patcher_args[@]//-[ei] ${microg_patch}/}")