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