mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 08:07:40 +00:00
Update build-rv.sh
This commit is contained in:
@@ -2,19 +2,14 @@
|
|||||||
# Revanced build
|
# Revanced build
|
||||||
source src/build/tools.sh
|
source src/build/tools.sh
|
||||||
|
|
||||||
release=$(curl -s "https://api.github.com/repos/revanced/revanced-patches/releases/latest")
|
curl -sL -O $(curl -s "https://api.github.com/repos/revanced/revanced-patches/releases/latest" | jq -r '.assets[] | select(.name | test("revanced-patches.*\\.jar$")) | .browser_download_url')
|
||||||
asset=$(echo "$release" | jq -r '.assets[] | select(.name | test("revanced-patches.*\\.jar$")) | .browser_download_url')
|
|
||||||
curl -sL -O "$asset"
|
|
||||||
ls revanced-patches*.jar >> new.txt
|
ls revanced-patches*.jar >> new.txt
|
||||||
rm -f revanced-patches*.jar
|
curl -sL -O $(curl -s "https://api.github.com/repos/$repository/releases/latest" | jq -r '.assets[] | select(.name == "revanced-version.txt") | .browser_download_url')
|
||||||
release=$(curl -s "https://api.github.com/repos/$repository/releases/latest")
|
|
||||||
asset=$(echo "$release" | jq -r '.assets[] | select(.name == "revanced-version.txt") | .browser_download_url')
|
|
||||||
curl -sL -O "$asset"
|
|
||||||
if diff -q revanced-version.txt new.txt >/dev/null ; then
|
if diff -q revanced-version.txt new.txt >/dev/null ; then
|
||||||
|
rm -f revanced-patches*.jar *.txt
|
||||||
echo "Old patch!!! Not build"
|
echo "Old patch!!! Not build"
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
rm -f *.txt
|
|
||||||
|
|
||||||
dl_gh "revanced-patches revanced-cli revanced-integrations" "revanced" "latest"
|
dl_gh "revanced-patches revanced-cli revanced-integrations" "revanced" "latest"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user