diff --git a/CONFIG.md b/CONFIG.md index af3c6a4..bc77500 100755 --- a/CONFIG.md +++ b/CONFIG.md @@ -18,6 +18,7 @@ parallel-jobs = 1 # amount of cores to use for parallel patching, if not set npr patches-source = "revanced/revanced-patches" # where to fetch patches bundle from. default: "revanced/revanced-patches" integrations-source = "revanced/revanced-integrations" # where to fetch integrations from. default: "revanced/revanced-integrations" cli-source = "j-hc/revanced-cli" # where to fetch cli from. default: "j-hc/revanced-cli" +# options like cli-source can also set per app rv-brand = "ReVanced Extended" # rebrand from 'ReVanced' to something different. default: "ReVanced" patches-version = "v2.160.0" # locks the patches version. default: latest available @@ -31,8 +32,8 @@ version = "auto" # 'auto', 'latest', 'beta' or a custom one e.g. '17.40.41'. def # 'latest' gets the latest stable without checking patches support. 'beta' gets the latest beta/alpha include-stock = true # includes stock apk in the module. default: true build-mode = "apk" # 'both', 'apk' or 'module'. default: apk -excluded-patches = "some-patch some-other-patch" # whitespace seperated list of patches to exclude. default: "" (empty) -included-patches = "patch-name" # whitespace seperated list of patches to include, all default patches are included by default. default: "" (empty) +excluded-patches = "'Some Patch' 'Some Other Patch'" # whitespace seperated list of patches to exclude. default: "" (empty) +included-patches = "'Patch something'" # whitespace seperated list of patches to include, all default patches are included by default. default: "" (empty) exclusive-patches = false # exclude all patches by default. default: false apkmirror-dlurl = "https://www.apkmirror.com/apk/inc/app" uptodown-dlurl = "https://spotify.en.uptodown.com/android" @@ -41,5 +42,4 @@ 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', 'universal', 'both'. 'both' downloads both arm64-v8a and arm-v7a. default: universal -# arch option is only for downloading from apkmirror and does not affect anything else. ``` diff --git a/build.sh b/build.sh index 4d4e7a1..1537be6 100755 --- a/build.sh +++ b/build.sh @@ -31,6 +31,8 @@ if [ "${2:-}" = "--config-update" ]; then config_update exit 0 fi +PREV_BUILDMD=$(cat build.md) || PREV_BUILDMD="" + : >build.md ENABLE_MAGISK_UPDATE=$(toml_get "$main_config_t" enable-magisk-update) || ENABLE_MAGISK_UPDATE=true if [ "$ENABLE_MAGISK_UPDATE" = true ] && [ -z "${GITHUB_REPOSITORY:-}" ]; then @@ -189,4 +191,10 @@ log "\n[revanced-magisk-module](https://github.com/j-hc/revanced-magisk-module)" log "\nChangelog:" log "$(cat $TEMP_DIR/*-rv/changelog.md)" +SKIPPED=$(grep -F "Patches: " <<<"$PREV_BUILDMD" | grep -vE "$(grep -F "Patches: " build.md | cut -d/ -f1 | sed 's/ //g' | paste -sd '~' | sed 's;~;|;g')" || :) +if [ -n "$SKIPPED" ]; then + log "\nSkipped:" + log "$SKIPPED" +fi + pr "Done" diff --git a/config.toml b/config.toml index d0bddf9..021dd04 100755 --- a/config.toml +++ b/config.toml @@ -4,11 +4,13 @@ enable-magisk-update = true # set this to false if you do not want to receive # add 'enabled = false' for not patching a specific app or remove it from the config # see https://github.com/j-hc/revanced-magisk-module/blob/main/CONFIG.md for more detailed explanations +# you can use rvmm-config-gen to generate a config + [YouTube] -build-mode = "both" # 'both', 'apk' or 'module' -excluded-patches = "" # space-seperated patches to exclude (multiline strings are not supported) -included-patches = "" # space-seperated patches to include (non-excluded patches are included by default) -version = "auto" # 'auto', 'latest', 'beta' or a custom one like '17.40.41' +build-mode = "both" +excluded-patches = "" +included-patches = "" +version = "auto" archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.youtube" [Music-Extended] diff --git a/utils.sh b/utils.sh index 1a197fe..c1e6d86 100755 --- a/utils.sh +++ b/utils.sh @@ -3,7 +3,6 @@ MODULE_TEMPLATE_DIR="revanced-magisk" TEMP_DIR="temp" BUILD_DIR="build" -# PKGS_LIST="${TEMP_DIR}/module-pkgs" if [ "${GITHUB_TOKEN:-}" ]; then GH_HEADER="Authorization: token ${GITHUB_TOKEN}"; else GH_HEADER=; fi NEXT_VER_CODE=${NEXT_VER_CODE:-$(date +'%Y%m%d')}