From c076e5e8225e619d06b6d2cbf57c7707f781b151 Mon Sep 17 00:00:00 2001 From: siritami <102145692+FiorenMas@users.noreply.github.com> Date: Tue, 5 Mar 2024 07:18:38 +0700 Subject: [PATCH] added ReX forked by rufusin --- .github/workflows/ci.yml | 12 ++++++++ .github/workflows/manual-patch.yml | 30 +++++++++++++++++-- README.md | 12 ++++++++ src/build/ReX-rufusin.sh | 30 +++++++++++++++++++ src/options/ReX-rufusin.json | 1 + .../youtube-ReX-rufusin/exclude-patches | 18 +++++++++++ .../youtube-ReX-rufusin/include-patches | 1 + 7 files changed, 101 insertions(+), 3 deletions(-) create mode 100644 src/build/ReX-rufusin.sh create mode 100644 src/options/ReX-rufusin.json create mode 100644 src/patches/youtube-ReX-rufusin/exclude-patches create mode 100644 src/patches/youtube-ReX-rufusin/include-patches diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9a90c1..6a4d2d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,10 @@ jobs: id: check-rex if: steps.check-gh.outputs.internet_error == '0' run: bash src/etc/ci.sh YT-Advanced/ReX-patches latest youtube-ReX.apk + - name: Check new patch ReX forked by rufusin + id: check-rex-rufusin + if: steps.check-gh.outputs.internet_error == '0' + run: bash src/etc/ci.sh rufusin/revanced-patches latest youtube-ReX-rufusin.apk - name: Check new patch Revanced Extended id: check-rve if: steps.check-gh.outputs.internet_error == '0' @@ -75,6 +79,7 @@ jobs: check_rv: ${{ steps.check-rv.outputs.new_patch }} check_rv_beta: ${{ steps.check-rv-beta.outputs.new_patch }} check_rex: ${{ steps.check-rex.outputs.new_patch }} + check_rex_rufusin: ${{ steps.check-rex-rufusin.outputs.new_patch }} check_rve: ${{ steps.check-rve.outputs.new_patch }} check_rve67: ${{ steps.check-rve67.outputs.new_patch }} check_rve5: ${{ steps.check-rve5.outputs.new_patch }} @@ -100,6 +105,13 @@ jobs: uses: ./.github/workflows/manual-patch.yml with: org: "ReX" + Patch-ReX-rufusin: + name: Patch ReX forked by rufusin + needs: check + if: ${{ needs.check.outputs.check_rex_rufusin == 1 }} + uses: ./.github/workflows/manual-patch.yml + with: + org: "ReX-rufusin" Patch-Revanced-Extended: name: Patch Revanced Extended needs: check diff --git a/.github/workflows/manual-patch.yml b/.github/workflows/manual-patch.yml index 14442cf..aad9933 100644 --- a/.github/workflows/manual-patch.yml +++ b/.github/workflows/manual-patch.yml @@ -18,6 +18,7 @@ on: - 'Revanced' - 'Revanced Beta' - 'ReX' + - 'Rex-rufusin' - 'Revanced Extended' - 'Revanced Extended Android 6,7' - 'Revanced Extended Android 5' @@ -109,6 +110,29 @@ jobs: - name: Re-run workflow if github connection not stable if: always() && steps.patch-rex.outcome == 'skipped' && env.retry_count < env.max_retries uses: ./.github/actions/re-run + patch_rex_rufusin: + name: Patch ReX forked by rufusin + if: ${{ github.event.inputs.org == 'ReX-rufusin' || github.event.inputs.org == 'All' || inputs.org == 'ReX-rufusin' }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4.1.1 + - name: Check github connection + id: check-gh-rex-rufusin + run: bash src/etc/connection.sh + - name: Preparing to patch + if: steps.check-gh-rex-rufusin.outputs.internet_error == '0' + uses: ./.github/actions/preparing + - name: Patch apk + id: patch-rex + if: steps.check-gh-rex-rufusin.outputs.internet_error == '0' + run: bash src/build/ReX-rufusin.sh + - name: Releasing APK files + if: steps.check-gh-rex-rufusin.outputs.internet_error == '0' + uses: ./.github/actions/release + - name: Re-run workflow if github connection not stable + if: always() && steps.patch-rex-rufusin.outcome == 'skipped' && env.retry_count < env.max_retries + uses: ./.github/actions/re-run patch_rve: name: Patch Revanced Extended if: ${{ github.event.inputs.org == 'Revanced Extended' || github.event.inputs.org == 'All' || inputs.org == 'Revanced Extended' }} @@ -133,7 +157,7 @@ jobs: if: always() && steps.patch-rve.outcome == 'skipped' && env.retry_count < env.max_retries uses: ./.github/actions/re-run patch_rve67: - name: Revanced Extended Android 6,7 + name: Patch Revanced Extended Android 6,7 if: ${{ github.event.inputs.org == 'Revanced Extended Android 6,7' || github.event.inputs.org == 'All' || inputs.org == 'Revanced Extended Android 6,7' }} runs-on: ubuntu-latest steps: @@ -156,7 +180,7 @@ jobs: if: always() && steps.patch-rve67.outcome == 'skipped' && env.retry_count < env.max_retries uses: ./.github/actions/re-run patch_rve5: - name: Revanced Extended Android 5 + name: Patch Revanced Extended Android 5 if: ${{ github.event.inputs.org == 'Revanced Extended Android 5' || github.event.inputs.org == 'All' || inputs.org == 'Revanced Extended Android 5' }} runs-on: ubuntu-latest steps: @@ -177,4 +201,4 @@ jobs: uses: ./.github/actions/release - name: Re-run workflow if github connection not stable if: always() && steps.patch-rve5.outcome == 'skipped' && env.retry_count < env.max_retries - uses: ./.github/actions/re-run + uses: ./.github/actions/re-run \ No newline at end of file diff --git a/README.md b/README.md index a00ce25..0af0578 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,18 @@ Download [x86_64](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-x86_64-ReX.apk) +### [ReX forked by rufusin:](https://github.com/rufusin/revanced-patches) + +[All Architectures](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-ReX-rufusin.apk) + +[Arm64-v8a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-arm64-v8a-ReX-rufusin.apk) + +[Armeabi-v7a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-armeabi-v7a-ReX-rufusin.apk) + +[x86](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-x86-ReX-rufusin.apk) + +[x86_64](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-x86_64-ReX-rufusin.apk) + ### [Revanced Extended: (Discontinued)](https://github.com/inotia00/revanced-patches/) [All Architectures](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-revanced-extended.apk) diff --git a/src/build/ReX-rufusin.sh b/src/build/ReX-rufusin.sh new file mode 100644 index 0000000..8a89b28 --- /dev/null +++ b/src/build/ReX-rufusin.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# ReX forked by rufusin build +source src/build/utils.sh + +################################################# + +# Download requirements +dl_gh " revanced-patches revanced-integrations" "rufusin" "latest" +dl_gh "revanced-cli" "inotia00" "latest" + +################################################# + +# Patch YouTube ReX rufusin: +get_patches_key "youtube-ReX-rufusin" +get_ver "Hide general ads" "com.google.android.youtube" +get_apk "youtube" "youtube" "google-inc/youtube/youtube" +patch "youtube" "ReX-rufusin" "inotia" + + +################################################# + +rm -f revanced-cli* +dl_gh "revanced-cli" "FiorenMas" "latest" +# Split architecture Youtube: +get_patches_key "youtube-ReX-rufusin" +for i in {0..3}; do + split_arch "youtube" "youtube-${archs[i]}-ReX-rufusin" "$(gen_rip_libs ${libs[i]})" +done + +################################################# \ No newline at end of file diff --git a/src/options/ReX-rufusin.json b/src/options/ReX-rufusin.json new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/src/options/ReX-rufusin.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/src/patches/youtube-ReX-rufusin/exclude-patches b/src/patches/youtube-ReX-rufusin/exclude-patches new file mode 100644 index 0000000..99e8f40 --- /dev/null +++ b/src/patches/youtube-ReX-rufusin/exclude-patches @@ -0,0 +1,18 @@ +Custom branding icon YouTube +Enable compact controls overlay +Disable QUIC protocol +Disable auto captions +Disable HDR video +Enable old quality layout +Enable zen mode +Hide account menu +Hide autoplay button +Hide autoplay preview +Hide captions button +Hide description components +Hide handle +Hide latest videos button +Hide load more button +Hide mix playlists +Hide previous next button +Custom seekbar color diff --git a/src/patches/youtube-ReX-rufusin/include-patches b/src/patches/youtube-ReX-rufusin/include-patches new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/src/patches/youtube-ReX-rufusin/include-patches @@ -0,0 +1 @@ +