mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 08:07:40 +00:00
Update
This commit is contained in:
@@ -2,19 +2,9 @@
|
|||||||
# Revanced Extended for android 6 & 7 build
|
# Revanced Extended for android 6 & 7 build
|
||||||
source src/build/utils.sh
|
source src/build/utils.sh
|
||||||
|
|
||||||
release=$(curl -s "https://api.github.com/repos/kitadai31/revanced-patches-android6-7/releases/latest")
|
#################################################
|
||||||
asset=$(echo "$release" | jq -r '.assets[] | select(.name | test("revanced-patches.*\\.jar$")) | .browser_download_url')
|
|
||||||
curl -sL -O "$asset"
|
checker "kitadai31/revanced-patches-android6-7" "revanced-extended-android-6-7"
|
||||||
ls revanced-patches*.jar >> new.txt
|
|
||||||
rm -f revanced-patches*.jar
|
|
||||||
release=$(curl -s "https://api.github.com/repos/$repository/releases/latest")
|
|
||||||
asset=$(echo "$release" | jq -r '.assets[] | select(.name == "revanced-extended-android-6-7-version.txt") | .browser_download_url')
|
|
||||||
curl -sL -O "$asset"
|
|
||||||
if diff -q revanced-extended-android-6-7-version.txt new.txt >/dev/null ; then
|
|
||||||
echo "Old patch!!! Not build"
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
rm -f ./*.txt
|
|
||||||
|
|
||||||
#################################################
|
#################################################
|
||||||
|
|
||||||
@@ -41,6 +31,3 @@ for i in {0..3}; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
#################################################
|
#################################################
|
||||||
|
|
||||||
ls revanced-patches*.jar >> revanced-extended-android-6-7-version.txt
|
|
||||||
fi
|
|
||||||
@@ -2,19 +2,9 @@
|
|||||||
# Revanced Extended build
|
# Revanced Extended build
|
||||||
source src/build/utils.sh
|
source src/build/utils.sh
|
||||||
|
|
||||||
release=$(curl -s "https://api.github.com/repos/inotia00/revanced-patches/releases/latest")
|
#################################################
|
||||||
asset=$(echo "$release" | jq -r '.assets[] | select(.name | test("revanced-patches.*\\.jar$")) | .browser_download_url')
|
|
||||||
curl -sL -O "$asset"
|
checker "inotia00/revanced-patches" "revanced-extended"
|
||||||
ls revanced-patches*.jar >> new.txt
|
|
||||||
rm -f revanced-patches*.jar
|
|
||||||
release=$(curl -s "https://api.github.com/repos/$repository/releases/latest")
|
|
||||||
asset=$(echo "$release" | jq -r '.assets[] | select(.name == "revanced-extended-version.txt") | .browser_download_url')
|
|
||||||
curl -sL -O "$asset"
|
|
||||||
if diff -q revanced-extended-version.txt new.txt >/dev/null ; then
|
|
||||||
echo "Old patch!!! Not build"
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
rm -f ./*.txt
|
|
||||||
|
|
||||||
#################################################
|
#################################################
|
||||||
|
|
||||||
@@ -54,6 +44,3 @@ for i in {0..3}; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
#################################################
|
#################################################
|
||||||
|
|
||||||
ls revanced-patches*.jar >> revanced-extended-version.txt
|
|
||||||
fi
|
|
||||||
|
|||||||
@@ -2,19 +2,9 @@
|
|||||||
# Revanced build
|
# Revanced build
|
||||||
source ./src/build/utils.sh
|
source ./src/build/utils.sh
|
||||||
|
|
||||||
release=$(curl -sL "https://api.github.com/repos/revanced/revanced-patches/releases/latest")
|
#################################################
|
||||||
asset=$(echo "$release" | jq -r '.assets[] | select(.name | test("revanced-patches.*\\.jar$")) | .browser_download_url')
|
|
||||||
curl -sLO "$asset"
|
checker "revanced/revanced-patches" "revanced"
|
||||||
ls revanced-patches*.jar >> new.txt
|
|
||||||
rm -f revanced-patches*.jar
|
|
||||||
release=$(curl -sL "https://api.github.com/repos/$repository/releases/latest")
|
|
||||||
asset=$(echo "$release" | jq -r '.assets[] | select(.name == "revanced-version.txt") | .browser_download_url')
|
|
||||||
curl -sLO "$asset"
|
|
||||||
if diff -q revanced-version.txt new.txt >/dev/null ; then
|
|
||||||
echo "Old patch!!! Not build"
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
rm -f ./*.txt
|
|
||||||
|
|
||||||
#################################################
|
#################################################
|
||||||
|
|
||||||
@@ -125,6 +115,3 @@ get_apk "instagram-armeabi-v7a" "instagram-instagram" "instagram/instagram-insta
|
|||||||
patch "instagram-armeabi-v7a" "instagram-armeabi-v7a-revanced"
|
patch "instagram-armeabi-v7a" "instagram-armeabi-v7a-revanced"
|
||||||
|
|
||||||
#################################################
|
#################################################
|
||||||
|
|
||||||
ls revanced-patches*.jar >> revanced-version.txt
|
|
||||||
fi
|
|
||||||
|
|||||||
@@ -2,6 +2,24 @@
|
|||||||
|
|
||||||
#################################################
|
#################################################
|
||||||
|
|
||||||
|
checker() {
|
||||||
|
curl -sL https://api.github.com/repos/$1/releases/latest > json.txt
|
||||||
|
latest_version=$(jq -r '.name' json.txt)
|
||||||
|
echo $latest_version > latest-version.txt
|
||||||
|
curl -sL "https://api.github.com/repos/$repository/releases/latest" | jq -r '.assets[] | select(.name == "'$2'-version.txt") | .browser_download_url' | xargs curl -sLO
|
||||||
|
cur_version=$(cat $2-version.txt)
|
||||||
|
if [ "$latest_version" = "$cur_version" ]; then
|
||||||
|
echo "Old patch, not build!"
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo "New patch, building..."
|
||||||
|
rm -f ./$2-version.txt ./json.txt
|
||||||
|
mv latest-version.txt $2-version.txt
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
#################################################
|
||||||
|
|
||||||
# Download Github assets requirement:
|
# Download Github assets requirement:
|
||||||
dl_gh() {
|
dl_gh() {
|
||||||
for repo in $1 ; do
|
for repo in $1 ; do
|
||||||
|
|||||||
Reference in New Issue
Block a user