diff --git a/CONFIG.md b/CONFIG.md index f05f039..a967d8a 100755 --- a/CONFIG.md +++ b/CONFIG.md @@ -12,8 +12,13 @@ apkmirror-dlurl = "https://www.apkmirror.com/apk/inc/app" ## More about other options: +<<<<<<< HEAD There exists an example below with all defaults shown and all the keys explicitly set. **All keys are optional** (except download urls) and are assigned to their default values if not set explicitly. +======= +There exists an example below with all defaults shown and all the keys explicitly set. +**All keys are optional** (except download urls) and are assigned to their default values if not set explicitly. +>>>>>>> 2f14d6a982fad3538b18e767631a239eef9123b4 ```toml parallel-jobs = 1 # amount of cores to use for parallel patching, if not set $(nproc) is used diff --git a/build.sh b/build.sh index b994a1a..4c72acc 100755 --- a/build.sh +++ b/build.sh @@ -166,6 +166,7 @@ wait rm -rf temp/tmp.* if [ -z "$(ls -A1 "${BUILD_DIR}")" ]; then abort "All builds failed."; fi +<<<<<<< HEAD # Initial changelog logic # log "\nInstall [Microg](https://github.com/ReVanced/GmsCore/releases) for non-root YouTube and YT Music APKs" # log "Use [zygisk-detach](https://github.com/j-hc/zygisk-detach) to detach root ReVanced YouTube and YT Music from Play Store" @@ -173,6 +174,12 @@ if [ -z "$(ls -A1 "${BUILD_DIR}")" ]; then abort "All builds failed."; fi # log "$(cat "$TEMP_DIR"/*/changelog.md)" log "\n$(cat "$TEMP_DIR"/*/changelog.md)" +======= +log "\nInstall [Microg](https://github.com/ReVanced/GmsCore/releases) for non-root YouTube and YT Music APKs" +log "Use [zygisk-detach](https://github.com/j-hc/zygisk-detach) to detach root ReVanced YouTube and YT Music from Play Store" +log "\n[revanced-magisk-module](https://github.com/j-hc/revanced-magisk-module)\n" +log "$(cat "$TEMP_DIR"/*/changelog.md)" +>>>>>>> 2f14d6a982fad3538b18e767631a239eef9123b4 SKIPPED=$(cat "$TEMP_DIR"/skipped 2>/dev/null || :) if [ -n "$SKIPPED" ]; then @@ -180,6 +187,7 @@ if [ -n "$SKIPPED" ]; then log "$SKIPPED" fi +<<<<<<< HEAD # New skipped changelog logic with links # SKIPPED=$(cat "$TEMP_DIR"/skipped 2>/dev/null || :) @@ -196,4 +204,6 @@ fi # log "$(cat "$TEMP_DIR"/*-rv/changelog.md)" # fi +======= +>>>>>>> 2f14d6a982fad3538b18e767631a239eef9123b4 pr "Done" diff --git a/config.toml b/config.toml index dfc6114..ef9be30 100755 --- a/config.toml +++ b/config.toml @@ -6,6 +6,7 @@ parallel-jobs = 1 # you can use rvmm-config-gen to generate a config +<<<<<<< HEAD patches-source = "anddea/revanced-patches" integrations-source = "anddea/revanced-integrations" cli-source = "inotia00/revanced-cli" @@ -37,3 +38,80 @@ archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.a excluded-patches = "'Custom header for YouTube Music'" included-patches = "'Visual preferences icons for YouTube Music' 'Return YouTube Username' 'Disable music video in album'" patcher-args = "-e 'Custom branding name for YouTube Music' -OappName='YT Music RVX' -e 'Custom branding icon for YouTube Music' -OappIcon='vanced_black'" +======= +[YouTube] +build-mode = "both" +excluded-patches = "" +included-patches = "" +version = "auto" +apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube" +uptodown-dlurl = "https://youtube.en.uptodown.com/android" +archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.youtube" + +[Music] +build-mode = "both" +arch = "both" +apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube-music" +uptodown-dlurl = "https://youtube-music.en.uptodown.com/android" +archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.apps.youtube.music" + +[GooglePhotos] +build-mode = "both" +arch = "both" +version = "auto" +apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/photos/" +uptodown-dlurl = "https://google-photos.en.uptodown.com/android" +archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.apps.photos" + +[Spotify] +enabled = false +uptodown-dlurl = "https://spotify.en.uptodown.com/android" +archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.spotify.music" + +# https://github.com/j-hc/revanced-magisk-module/issues/554 +[Music-Extended] +enabled = false +app-name = "Music" +patches-source = "inotia00/revanced-patches" +cli-source = "inotia00/revanced-cli" +rv-brand = "ReVanced Extended" +build-mode = "both" +arch = "both" +apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube-music" + +[YouTube-Extended] +enabled = false +app-name = "YouTube" +patches-source = "inotia00/revanced-patches" +cli-source = "inotia00/revanced-cli" +rv-brand = "ReVanced Extended" +build-mode = "both" +apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube" + +[Twitch] +enabled = false +apkmirror-dlurl = "https://www.apkmirror.com/apk/twitch-interactive-inc/twitch/" +uptodown-dlurl = "https://twitch.en.uptodown.com/android" +# archive-dlurl = "https://archive.org/download/jhc-apks/apks/tv.twitch.android.app" + +[Twitter] +enabled = false +apkmirror-dlurl = "https://www.apkmirror.com/apk/x-corp/twitter" +build-mode = "apk" +dpi = "120-640dpi" +# archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.twitter.android" + +[TikTok] +enabled = false +# archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.zhiliaoapp.musically" +included-patches = "'SIM spoof'" + +[Messenger] +enabled = false +apkmirror-dlurl = "https://www.apkmirror.com/apk/facebook-2/messenger/" +arch = "arm64-v8a" + +[IconPackStudio] +enabled = false +apkmirror-dlurl = "https://www.apkmirror.com/apk/smart-launcher-team/icon-pack-studio/" +>>>>>>> 2f14d6a982fad3538b18e767631a239eef9123b4 diff --git a/revanced-magisk/customize.sh b/revanced-magisk/customize.sh index ae8bdd4..1e62fe3 100755 --- a/revanced-magisk/customize.sh +++ b/revanced-magisk/customize.sh @@ -176,5 +176,9 @@ nohup cmd package compile --reset "$PKG_NAME" >/dev/null 2>&1 & rm -rf "${MODPATH:?}/bin" "$MODPATH/$PKG_NAME.apk" ui_print "* Done" +<<<<<<< HEAD ui_print " by ev3rlin (https://github.com/ev3rlin)" +======= +ui_print " by j-hc (github.com/j-hc)" +>>>>>>> 2f14d6a982fad3538b18e767631a239eef9123b4 ui_print " " diff --git a/utils.sh b/utils.sh index ae5f5de..025a343 100755 --- a/utils.sh +++ b/utils.sh @@ -52,10 +52,18 @@ get_prebuilts() { local cl_dir=${patches_src%/*} cl_dir=${TEMP_DIR}/${cl_dir,,}-rv [ -d "$cl_dir" ] || mkdir "$cl_dir" +<<<<<<< HEAD +======= + +>>>>>>> 2f14d6a982fad3538b18e767631a239eef9123b4 for src_ver in "$cli_src CLI $cli_ver revanced-cli" "$patches_src Patches $patches_ver patches"; do set -- $src_ver local src=$1 tag=$2 ver=${3-} fprefix=$4 local ext +<<<<<<< HEAD +======= + +>>>>>>> 2f14d6a982fad3538b18e767631a239eef9123b4 if [ "$tag" = "CLI" ]; then ext="jar" local grab_cl=false @@ -97,7 +105,11 @@ get_prebuilts() { name=$(jq -r .name <<<"$asset") file="${dir}/${name}" gh_dl "$file" "$url" >&2 || return 1 +<<<<<<< HEAD echo "$tag: $(cut -d/ -f1 <<<"$src")/${name} " >>"${cl_dir}/changelog.md" +======= + echo "$tag: $(cut -d/ -f1 <<<"$src")/${name}  " >>"${cl_dir}/changelog.md" +>>>>>>> 2f14d6a982fad3538b18e767631a239eef9123b4 else grab_cl=false local for_err=$file @@ -114,6 +126,7 @@ get_prebuilts() { PATCH_EXT=$(java -jar "$file" -h | grep -oP -m1 '\w+(?= files)' | tr '[:upper:]' '[:lower:]') if [ -z "$PATCH_EXT" ]; then abort "Unable to detect patch extension from CLI help output."; fi elif [ "$tag" = "Patches" ]; then +<<<<<<< HEAD # Initial changelog structure if [ $grab_cl = true ]; then echo -e "[Changelog](https://github.com/${src}/releases/tag/${tag_name})\n" >>"${cl_dir}/changelog.md"; fi @@ -123,6 +136,9 @@ get_prebuilts() { # echo -e "$changelog_body\n" >>"${cl_dir}/changelog.md" # fi +======= + if [ $grab_cl = true ]; then echo -e "[Changelog](https://github.com/${src}/releases/tag/${tag_name})\n" >>"${cl_dir}/changelog.md"; fi +>>>>>>> 2f14d6a982fad3538b18e767631a239eef9123b4 if [ "$REMOVE_RV_INTEGRATIONS_CHECKS" = true ]; then # Dynamically calculate inner extension (rvp->rve, mpp->mpe) local inner_ext="${ext%p}e" @@ -155,6 +171,7 @@ set_prebuilts() { TOML="${BIN_DIR}/toml/tq-${arch}" } +<<<<<<< HEAD get_latest_app_version() { local src=$1 app=$2 local ver_file="patches/src/main/kotlin/app/revanced/patches/${app}/utils/compatibility/Constants.kt" @@ -202,6 +219,8 @@ auto_update_app_versions() { [ "$updated" = true ] } +======= +>>>>>>> 2f14d6a982fad3538b18e767631a239eef9123b4 config_update() { if [ ! -f build.md ]; then abort "build.md not available"; fi declare -A sources @@ -512,10 +531,13 @@ get_archive_pkg_name() { echo "$__ARCHIVE_PKG_NAME__"; } patch_apk() { local stock_input=$1 patched_apk=$2 patcher_args=$3 cli_jar=$4 patches_jar=$5 +<<<<<<< HEAD # TODO # Probably add \" \" to both $stock_input and $patched_apk if braces in rv-brand are an issue +======= +>>>>>>> 2f14d6a982fad3538b18e767631a239eef9123b4 local cmd="env -u GITHUB_REPOSITORY java -jar $cli_jar patch $stock_input --purge -o $patched_apk -p $patches_jar --keystore=ks.keystore \ --keystore-entry-password=123456789 --keystore-password=123456789 --signer=jhc --keystore-entry-alias=jhc $patcher_args" if [ "$OS" = Android ]; then cmd+=" --custom-aapt2-binary=${AAPT2}"; fi @@ -733,7 +755,11 @@ module_prop() { name=${2} version=v${3} versionCode=${NEXT_VER_CODE} +<<<<<<< HEAD author=ev3rlin +======= +author=j-hc +>>>>>>> 2f14d6a982fad3538b18e767631a239eef9123b4 description=${4}" >"${6}/module.prop" if [ "$ENABLE_MAGISK_UPDATE" = true ]; then echo "updateJson=${5}" >>"${6}/module.prop"; fi