mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 08:07:40 +00:00
added Revanced Beta
- Can patch and check new patch prerelease github
This commit is contained in:
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
@@ -15,23 +15,27 @@ jobs:
|
||||
uses: actions/checkout@v4.1.1
|
||||
- name: Check new patch ReVanced
|
||||
id: check-rv
|
||||
run: bash src/etc/ci.sh ReVanced/revanced-patches youtube-revanced.apk
|
||||
run: bash src/etc/ci.sh ReVanced/revanced-patches latest youtube-revanced.apk
|
||||
- name: Check new patch ReVanced Beta
|
||||
id: check-rv-beta
|
||||
run: bash src/etc/ci.sh ReVanced/revanced-patches prerelease youtube-beta-revanced.apk
|
||||
- name: Check new patch ReX
|
||||
id: check-rex
|
||||
run: bash src/etc/ci.sh YT-Advanced/ReX-patches youtube-ReX.apk
|
||||
run: bash src/etc/ci.sh YT-Advanced/ReX-patches latest youtube-ReX.apk
|
||||
- name: Check new patch Revanced Extended
|
||||
id: check-rve
|
||||
run: bash src/etc/ci.sh inotia00/revanced-patches youtube-revanced-extended.apk
|
||||
run: bash src/etc/ci.sh inotia00/revanced-patches latest youtube-revanced-extended.apk
|
||||
- name: Check new patch Revanced For Android 6 & 7
|
||||
id: check-rve67
|
||||
run: bash src/etc/ci.sh kitadai31/revanced-patches-android6-7 youtube-revanced-extended-android-6-7.apk
|
||||
run: bash src/etc/ci.sh kitadai31/revanced-patches-android6-7 latest youtube-revanced-extended-android-6-7.apk
|
||||
- name: Check new patch Revanced For Android 5
|
||||
id: check-rve5
|
||||
run: bash src/etc/ci.sh d4n3436/revanced-patches-android5 youtube-revanced-extended-android-5.apk
|
||||
run: bash src/etc/ci.sh d4n3436/revanced-patches-android5 latest youtube-revanced-extended-android-5.apk
|
||||
- name: Keep workflow run
|
||||
uses: gautamkrishnar/keepalive-workflow@v1
|
||||
outputs:
|
||||
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_rve: ${{ steps.check-rve.outputs.new_patch }}
|
||||
check_rve67: ${{ steps.check-rve67.outputs.new_patch }}
|
||||
@@ -44,6 +48,13 @@ jobs:
|
||||
uses: ./.github/workflows/manual-patch.yml
|
||||
with:
|
||||
org: "Revanced"
|
||||
Patch-Revanced-Beta:
|
||||
name: Patch Revanced Beta
|
||||
needs: check
|
||||
if: ${{ needs.check.outputs.check_rv_beta == 1 }}
|
||||
uses: ./.github/workflows/manual-patch.yml
|
||||
with:
|
||||
org: "Revanced Beta"
|
||||
Patch-ReX:
|
||||
name: Patch ReX
|
||||
needs: check
|
||||
|
||||
16
.github/workflows/manual-patch.yml
vendored
16
.github/workflows/manual-patch.yml
vendored
@@ -11,6 +11,7 @@ on:
|
||||
options:
|
||||
- 'All'
|
||||
- 'Revanced'
|
||||
- 'Revanced Beta'
|
||||
- 'ReX'
|
||||
- 'Revanced Extended'
|
||||
- 'Revanced Extended Android 6,7'
|
||||
@@ -45,6 +46,21 @@ jobs:
|
||||
repository: ${{ github.repository }}
|
||||
- name: Releasing APK files
|
||||
uses: ./.github/actions/release
|
||||
patch_rv_beta:
|
||||
name: Patch Revanced Beta
|
||||
if: ${{ github.event.inputs.org == 'Revanced Beta' || github.event.inputs.org == 'All' || inputs.org == 'Revanced Beta' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4.1.1
|
||||
- name: Preparing to patch
|
||||
uses: ./.github/actions/preparing
|
||||
- name: Patch apk
|
||||
run: bash src/build/Revanced-Beta.sh
|
||||
env:
|
||||
repository: ${{ github.repository }}
|
||||
- name: Releasing APK files
|
||||
uses: ./.github/actions/release
|
||||
patch_rex:
|
||||
name: Patch ReX
|
||||
if: ${{ github.event.inputs.org == 'ReX' || github.event.inputs.org == 'All' || inputs.org == 'ReX' }}
|
||||
|
||||
@@ -6,8 +6,6 @@ They are open-source scripts for patching various apps like YouTube, YouTube Mus
|
||||
<div align="center">
|
||||
|
||||
[](https://github.com/FiorenMas/View-Counter)
|
||||
[](https://www.codefactor.io/repository/github/fiorenmas/revanced-and-revanced-extended-non-root/overview/main)
|
||||
[](https://app.codacy.com/gh/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
||||

|
||||
[](https://t.me/fioren374)
|
||||
|
||||
@@ -30,6 +28,8 @@ If you are an advanced user and you want to use custom patches for patching apps
|
||||
Download
|
||||
</h1>
|
||||
|
||||
If you want download beta version [Click Here](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/blob/main/docs/Beta.md)
|
||||
|
||||
[](https://play.google.com/store/apps/details?id=com.google.android.youtube)
|
||||
|
||||
### [Revanced:](https://github.com/revanced/revanced-patches)
|
||||
|
||||
51
docs/Beta.md
Normal file
51
docs/Beta.md
Normal file
@@ -0,0 +1,51 @@
|
||||
<h1 align="center">
|
||||
Download
|
||||
</h1>
|
||||
|
||||
#### ⚠️ The APK files have the same package name as the stable version, so installing them will overwrite the stable version.
|
||||
|
||||
[](https://play.google.com/store/apps/details?id=com.google.android.youtube)
|
||||
|
||||
### [Revanced:](https://github.com/revanced/revanced-patches)
|
||||
|
||||
[All Architectures](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-beta-revanced.apk)
|
||||
|
||||
[Arm64-v8a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-beta-arm64-v8a-revanced.apk)
|
||||
|
||||
[Armeabi-v7a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-beta-armeabi-v7a-revanced.apk)
|
||||
|
||||
[x86](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-beta-x86-revanced.apk)
|
||||
|
||||
[x86_64](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-beta-x86_64-revanced.apk)
|
||||
|
||||
---
|
||||
|
||||
[](https://play.google.com/store/apps/details?id=com.google.android.apps.youtube.music)
|
||||
|
||||
### Revanced:
|
||||
|
||||
[Arm64-v8a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-music-beta-arm64-v8a-revanced.apk)
|
||||
|
||||
[Armeabi-v7a](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/all/youtube-music-beta-armeabi-v7a-revanced.apk)
|
||||
|
||||
---
|
||||
|
||||
## [MicroG:](https://github.com/inotia00/VancedMicroG)
|
||||
|
||||
[](https://github.com/inotia00/VancedMicroG/releases/latest/download/microg.apk)
|
||||
|
||||
### [Built by Github Action](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/MicroG/MicroG.apk)
|
||||
|
||||
---
|
||||
|
||||
## [MicroG-RE:](https://github.com/WSTxda/MicroG-RE)
|
||||
|
||||
[](https://github.com/WSTxda/MicroG-RE/releases)
|
||||
|
||||
---
|
||||
|
||||
## [mMicroG:](https://github.com/kazimmt/mMicroG/)
|
||||
|
||||
[](https://github.com/kazimmt/mMicroG/releases/latest/download/MicroG-arm64-v8a.apk)
|
||||
|
||||
[](https://github.com/ikazimmt/mMicroG/releases/latest/download/MicroG-armeabi-v7a.apk)
|
||||
43
src/build/Revanced-Beta.sh
Normal file
43
src/build/Revanced-Beta.sh
Normal file
@@ -0,0 +1,43 @@
|
||||
#!/bin/bash
|
||||
# Revanced build
|
||||
source ./src/build/utils.sh
|
||||
|
||||
#################################################
|
||||
|
||||
# Download requirements
|
||||
dl_gh "revanced-patches revanced-integrations" "revanced" "prerelease"
|
||||
dl_gh "revanced-cli" "revanced" "latest"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch YouTube:
|
||||
get_patches_key "youtube-revanced"
|
||||
get_ver "Video ads" "com.google.android.youtube"
|
||||
get_apk "youtube-beta" "youtube" "google-inc/youtube/youtube"
|
||||
patch "youtube-beta" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Patch YouTube Music:
|
||||
# Arm64-v8a
|
||||
get_patches_key "youtube-music-revanced"
|
||||
get_apk "youtube-music-beta-arm64-v8a" "youtube-music" "google-inc/youtube-music/youtube-music" "arm64-v8a"
|
||||
patch "youtube-music-beta-arm64-v8a" "revanced"
|
||||
# Armeabi-v7a
|
||||
get_patches_key "youtube-music-revanced"
|
||||
get_apk "youtube-music-beta-armeabi-v7a" "youtube-music" "google-inc/youtube-music/youtube-music" "armeabi-v7a"
|
||||
patch "youtube-music-beta-armeabi-v7a" "revanced"
|
||||
|
||||
#################################################
|
||||
|
||||
# Split architecture:
|
||||
rm -f revanced-cli* revanced-patches*.jar patches.json
|
||||
dl_gh "revanced-patches" "revanced" "prerelease"
|
||||
dl_gh "revanced-cli" "FiorenMas" "latest"
|
||||
# Split architecture Youtube:
|
||||
get_patches_key "youtube-revanced"
|
||||
for i in {0..3}; do
|
||||
split_arch "youtube-beta" "youtube-beta-${archs[i]}-revanced" "$(gen_rip_libs ${libs[i]})"
|
||||
done
|
||||
|
||||
#################################################
|
||||
@@ -6,7 +6,7 @@ source src/build/utils.sh
|
||||
|
||||
# Download requirements
|
||||
dl_gh "revanced-patches-android5 revanced-integrations" "d4n3436" "latest"
|
||||
dl_gh "revanced-cli" "revanced" "tags/v3.1.1"
|
||||
dl_gh "revanced-cli" "revanced" "v3.1.1"
|
||||
|
||||
#################################################
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source src/build/utils.sh
|
||||
|
||||
# Download requirements
|
||||
dl_gh "revanced-patches-android6-7 revanced-integrations" "kitadai31" "latest"
|
||||
dl_gh "revanced-cli" "revanced" "tags/v3.1.1"
|
||||
dl_gh "revanced-cli" "revanced" "v3.1.1"
|
||||
|
||||
#################################################
|
||||
|
||||
|
||||
@@ -16,18 +16,67 @@ red_log() {
|
||||
|
||||
# Download Github assets requirement:
|
||||
dl_gh() {
|
||||
local repo=$1
|
||||
for repo in $1 ; do
|
||||
wget -qO- "https://api.github.com/repos/$2/$repo/releases/$3" \
|
||||
| jq -r '.assets[] | "\(.browser_download_url) \(.name)"' \
|
||||
| while read -r url names; do
|
||||
green_log "[+] Downloading $names from $2"
|
||||
wget -q -O "$names" $url
|
||||
done
|
||||
local owner=$2 tag=$3 found=0 assets=0
|
||||
releases=$(wget -qO- "https://api.github.com/repos/$owner/$repo/releases")
|
||||
while read -r line; do
|
||||
if [[ $line == *"\"tag_name\":"* ]]; then
|
||||
tag_name=$(echo $line | cut -d '"' -f 4)
|
||||
if [ "$tag" == "$tag_name" ] || [ "$tag" == "latest" ] || [ "$tag" == "prerelease" ]; then
|
||||
found=1
|
||||
else
|
||||
found=0
|
||||
fi
|
||||
fi
|
||||
if [[ $line == *"\"prerelease\":"* ]]; then
|
||||
prerelease=$(echo $line | cut -d ' ' -f 2 | tr -d ',')
|
||||
if [ "$tag" == "prerelease" ] && [ "$prerelease" == "false" ]; then
|
||||
found=0
|
||||
elif [ "$tag" == "latest" ] && [ "$prerelease" == "true" ]; then
|
||||
found=0
|
||||
fi
|
||||
fi
|
||||
if [[ $line == *"\"assets\":"* ]]; then
|
||||
if [ $found -eq 1 ]; then
|
||||
assets=1
|
||||
fi
|
||||
fi
|
||||
if [[ $line == *"\"browser_download_url\":"* ]]; then
|
||||
if [ $assets -eq 1 ]; then
|
||||
url=$(echo $line | cut -d '"' -f 4)
|
||||
name=$(basename "$url")
|
||||
wget -q -O "$name" "$url"
|
||||
green_log "[+] Downloading $name from $owner"
|
||||
fi
|
||||
fi
|
||||
if [[ $line == *"],"* ]]; then
|
||||
if [ $assets -eq 1 ]; then
|
||||
assets=0
|
||||
break
|
||||
fi
|
||||
fi
|
||||
done <<< "$releases"
|
||||
done
|
||||
}
|
||||
|
||||
#################################################
|
||||
|
||||
# Get patches list:
|
||||
get_patches_key() {
|
||||
excludePatches=""
|
||||
includePatches=""
|
||||
while IFS= read -r line1; do
|
||||
excludePatches+=" -e \"$line1\""
|
||||
done < src/patches/$1/exclude-patches
|
||||
export excludePatches
|
||||
while IFS= read -r line2; do
|
||||
includePatches+=" -i \"$line2\""
|
||||
done < src/patches/$1/include-patches
|
||||
export includePatches
|
||||
}
|
||||
#################################################
|
||||
|
||||
# Get patches list:
|
||||
get_patches_key() {
|
||||
excludePatches=""
|
||||
|
||||
1
src/options/ReX.json
Normal file
1
src/options/ReX.json
Normal file
@@ -0,0 +1 @@
|
||||
[]
|
||||
1
src/options/revanced-extended-android-5.json
Normal file
1
src/options/revanced-extended-android-5.json
Normal file
@@ -0,0 +1 @@
|
||||
[]
|
||||
Reference in New Issue
Block a user