This commit is contained in:
coolnsx
2023-11-20 20:47:52 +05:30
parent 9a0489260e
commit 86fa94b862

View File

@@ -18,17 +18,15 @@ download_apk() {
} }
download_keystore() { download_keystore() {
[ ! -f "$HOME/.secrets" ] && return 0 RV_KEYSTORE_URL="https://cloud.coolans.dev/s/Mpb8aDzxaP9bDpt/download"
#shellcheck disable=SC1091 RV_KEYSTORE="yt-revanced.keystore"
. "$HOME/.secrets"
load_revanced_creds
keystore="--keystore $tmp_dir/$RV_KEYSTORE" keystore="--keystore $tmp_dir/$RV_KEYSTORE"
[ ! -f "$tmp_dir/$RV_KEYSTORE" ] && curl -s "$RV_KEYSTORE_URL" -o "$tmp_dir/$RV_KEYSTORE" && info "Downloaded Keystore file in $tmp_dir" "32" && return 0 [ ! -f "$tmp_dir/$RV_KEYSTORE" ] && curl -s "$RV_KEYSTORE_URL" -o "$tmp_dir/$RV_KEYSTORE" && info "Downloaded Keystore file in $tmp_dir" "32" && return 0
[ ! -f "$tmp_dir/$RV_KEYSTORE" ] && keystore="" [ ! -f "$tmp_dir/$RV_KEYSTORE" ] && keystore=""
} }
tmp_dir="/tmp/revanced" tmp_dir="${TMPDIR:-/tmp}/revanced"
agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
apk_provider_url="https://www.apkmirror.com" apk_provider_url="https://www.apkmirror.com"
date=$(date +%F) date=$(date +%F)
rv_cli="cli-$date.jar" rv_cli="cli-$date.jar"