added Twitter Pico

- Remove rufusin patch because pj merged with anddea
- Improve ci function
This commit is contained in:
siritami
2024-03-17 17:56:43 +07:00
parent e503ee663a
commit 36d760e17c
13 changed files with 124 additions and 105 deletions

34
src/build/Piko.sh Normal file
View File

@@ -0,0 +1,34 @@
#!/bin/bash
# Twitter Piko
source src/build/utils.sh
# Patch Twitter Piko:
patch_piko () {
get_apk "twitter" "twitter" "x-corp/twitter/twitter"
dl_gh "revanced-patches revanced-cli" "revanced" "latest"
mv revanced-patches*.jar _revanced-patches*.jar
local v apk_name
if [[ "$1" == "latest" ]]; then
v="latest" apk_name="stable"
else
v="prerelease" apk_name="beta"
fi
get_patches_key "twitter-pico"
if [ -f "./download/twitter.apk" ]; then
dl_gh "piko revanced-integrations" "crimera" "$v"
green_log "[+] Patch Twitter Pico:"
eval java -jar revanced-cli*.jar patch \
--patch-bundle _revanced-patches*.jar \
--patch-bundle revanced-patches*.jar \
--merge revanced-integrations*.apk \
$excludePatches\
$includePatches \
--out=./release/twitter-piko-$apk_name.apk \
--keystore=./src/ks.keystore \
./download/twitter.apk
else
red_log "[-] Not found Twitter.apk"
exit 1
fi
}
patch_piko $1

View File

@@ -1,30 +0,0 @@
#!/bin/bash
# ReX forked by rufusin build
source src/build/utils.sh
#################################################
# Download requirements
dl_gh " revanced-patches revanced-integrations" "rufusin" "latest"
dl_gh "revanced-cli" "inotia00" "latest"
#################################################
# Patch YouTube ReX rufusin:
get_patches_key "youtube-ReX-rufusin"
get_ver "Hide general ads" "com.google.android.youtube"
get_apk "youtube" "youtube" "google-inc/youtube/youtube"
patch "youtube" "ReX-rufusin" "inotia"
#################################################
rm -f revanced-cli*
dl_gh "revanced-cli" "FiorenMas" "latest"
# Split architecture Youtube:
get_patches_key "youtube-ReX-rufusin"
for i in {0..3}; do
split_arch "youtube" "youtube-${archs[i]}-ReX-rufusin" "$(gen_rip_libs ${libs[i]})"
done
#################################################