Add files via upload

This commit is contained in:
FiorenMas
2023-03-27 21:31:18 +07:00
committed by GitHub
parent 19dee01317
commit fff6d716ca
2 changed files with 18 additions and 25 deletions

View File

@@ -1,16 +1,14 @@
# Download # Download
Revanced Revanced
[![Release](https://img.shields.io/github/downloads/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/total?style=for-the-badge)](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/latest/download/yt-revanced.apk) [![Release](https://img.shields.io/github/downloads/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/Revanced/total?style=for-the-badge)](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/Revanced/yt-revanced.apk)
Revanced Extended Revanced Extended
[![Release](https://img.shields.io/github/downloads/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/total?style=for-the-badge)](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/latest/download/yt-revanced-extended.apk) [![Release](https://img.shields.io/github/downloads/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/Revanced-Extended/total?style=for-the-badge)](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/Revanced-Extended/yt-revanced-extended.apk)
# Download MicroG from inotia00 source # Download MicroG from inotia00 source
[![Release](https://img.shields.io/github/v/release/inotia00/VancedMicroG.svg)](https://github.com/inotia00/VancedMicroG/releases/latest/download/microg.apk) [![Release](https://img.shields.io/github/v/release/inotia00/VancedMicroG.svg)](https://github.com/inotia00/VancedMicroG/releases/latest/download/microg.apk)
# About # About
This repository forked from [@luxysiv](https://github.com/luxysiv/yt-revanced-extended) This repository forked from [@luxysiv](https://github.com/luxysiv/yt-revanced-extended)
<img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/patch.yml">

View File

@@ -1,21 +1,18 @@
#!/bin/bash #!/bin/bash
# Config to patch Revanced and Revanced Extended # Config to patch Revanced and Revanced Extended
# Input YTVERSION number of version/blank to select specific/auto select YouTube version supported
# Revanced # Revanced
cat > keywords.rv << EOF cat > keywords.rv << EOF
NAME="revanced" NAME="revanced"
USER="revanced" ORG="revanced"
PATCH="patches.rv" PATCH="patches.rv"
YTVERSION="18.03.36"
EOF EOF
# Revanced Extended # Revanced Extended
cat > keywords.rve << EOF cat > keywords.rve << EOF
NAME="revanced-extended" NAME="revanced-extended"
USER="inotia00" ORG="inotia00"
PATCH="patches.rve" PATCH="patches.rve"
#YTVERSION="18.07.35"
EOF EOF
# for var in keywords.rv # Revanced # for var in keywords.rv # Revanced
@@ -66,15 +63,15 @@ echo -e "⏬ Prepairing $NAME resources..."
IFS=$' \t\r\n' IFS=$' \t\r\n'
# Patches & json # Patches & json
latest_patches=$(curl -s https://api.github.com/repos/$USER/revanced-patches/releases/latest \ latest_patches=$(curl -s https://api.github.com/repos/$ORG/revanced-patches/releases/latest \
| jq -r '.assets[].browser_download_url') | jq -r '.assets[].browser_download_url')
# Cli # Cli
latest_cli=$(curl -s https://api.github.com/repos/$USER/revanced-cli/releases/latest \ latest_cli=$(curl -s https://api.github.com/repos/$ORG/revanced-cli/releases/latest \
| jq -r '.assets[].browser_download_url') | jq -r '.assets[].browser_download_url')
# Integrations # Integrations
latest_integrations=$(curl -s https://api.github.com/repos/$USER/revanced-integrations/releases/latest \ latest_integrations=$(curl -s https://api.github.com/repos/$ORG/revanced-integrations/releases/latest \
| jq -r '.assets[].browser_download_url') | jq -r '.assets[].browser_download_url')
# Download all resources # Download all resources
@@ -82,8 +79,11 @@ for asset in $latest_patches $latest_cli $latest_integrations ; do
curl -s -OL $asset curl -s -OL $asset
done done
# Download YouTube APK supported # Fetch latest supported YT versions
WGET_HEADER="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:111.0) Gecko/20100101 Firefox/111.0" YTVERSION=$(jq -r '.[] | select(.name == "microg-support") | .compatiblePackages[] | select(.name == "com.google.android.youtube") | .versions[-1]' patches.json)
# Download latest APK supported
WGET_HEADER="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0"
req() { req() {
wget -q -O "$2" --header="$WGET_HEADER" "$1" wget -q -O "$2" --header="$WGET_HEADER" "$1"
@@ -107,13 +107,8 @@ dl_yt() {
req "$url" "$2" req "$url" "$2"
} }
# Download specific or auto choose Youtube version # Download Youtube
if [ $YTVERSION ] ;
then
dl_yt $YTVERSION youtube-v$YTVERSION.apk dl_yt $YTVERSION youtube-v$YTVERSION.apk
else YTVERSION=$(jq -r '.[] | select(.name == "microg-support") | .compatiblePackages[] | select(.name == "com.google.android.youtube") | .versions[-1]' patches.json)
dl_yt $YTVERSION youtube-v$YTVERSION.apk
fi
# Patch APK # Patch APK
echo -e "⚙️ Patching YouTube..." echo -e "⚙️ Patching YouTube..."