mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 08:07:40 +00:00
This commit is contained in:
@@ -10,6 +10,21 @@ dl_gh() {
|
||||
done
|
||||
echo "All assets downloaded"
|
||||
}
|
||||
dl_gh1() {
|
||||
for repo in revanced-patches revanced-cli ; do
|
||||
asset_urls=$(wget -qO- "https://api.github.com/repos/$1/$repo/releases/latest" \
|
||||
| jq -r '.assets[] | "\(.browser_download_url) \(.name)"')
|
||||
while read -r url names
|
||||
do
|
||||
echo "Downloading $names from $url"
|
||||
wget -q -O "$names" $url
|
||||
done <<< "$asset_urls"
|
||||
done
|
||||
echo "All assets downloaded"
|
||||
}
|
||||
dl_revanced_integrations() {
|
||||
curl --retry 10 --retry-max-time 60 -H "Cache-Control: no-cache" -fsSL github.com/$1/revanced-integrations/releases/download/v$2/revanced-integrations-$2.apk -o revanced-integrations-$2.apk
|
||||
}
|
||||
get_patches_key() {
|
||||
EXCLUDE_PATCHES=()
|
||||
for word in $(cat src/patches/$1/exclude-patches) ; do
|
||||
|
||||
12
src/build/twitter.sh
Normal file
12
src/build/twitter.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
# Revanced build
|
||||
source src/build/tools.sh
|
||||
|
||||
dl_gh1 "revanced"
|
||||
dl_revanced_integrations "revanced" "0.103.0"
|
||||
|
||||
# Patch Twitter
|
||||
get_patches_key "twitter"
|
||||
version="9.86.0-release.0"
|
||||
get_apk "twitter" "twitter" "twitter-inc/twitter/twitter"
|
||||
patch "twitter" "twitter-revanced"
|
||||
Reference in New Issue
Block a user