Update patch.sh

This commit is contained in:
FiorenMas
2023-03-19 10:41:13 +07:00
committed by GitHub
parent b229efadf7
commit 0ccfd8609a

View File

@@ -4,14 +4,14 @@
# Revanced
cat > keywords.rv << EOF
NAME="revanced"
USER="revanced"
ORG="revanced"
PATCH="patches.rv"
EOF
# Revanced Extended
cat > keywords.rve << EOF
NAME="revanced-extended"
USER="inotia00"
ORG="inotia00"
PATCH="patches.rve"
EOF
@@ -63,15 +63,15 @@ echo -e "⏬ Prepairing $NAME resources..."
IFS=$' \t\r\n'
# 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')
# 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')
# 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')
# Download all resources
@@ -127,7 +127,9 @@ rm -f revanced-cli*.jar \
revanced-patches*.jar \
patches.json \
options.toml \
youtube*.apk
youtube*.apk \
unset patches
# Finish
done