build WarnWetter

This commit is contained in:
Miro11
2022-08-08 14:47:10 +00:00
parent 850adedfab
commit 757be6e560
3 changed files with 20 additions and 0 deletions

View File

@ -159,6 +159,24 @@ build_twitter() {
patch_apk "$stock_apk" "$patched_apk" "-r"
}
build_warn_wetter() {
echo "Building WarnWetter"
local last_ver
last_ver=$(get_patch_last_supported_ver "warnapp")
last_ver="${last_ver:-$(get_apk_vers "https://www.apkmirror.com/apk/deutscher-wetterdienst/" | head -n 1)}"
echo "Choosing version '${last_ver}'"
local stock_apk="${TEMP_DIR}/warn_wetter-stock-v${last_ver}.apk" patched_apk="${BUILD_DIR}/warn_wetter-revanced-v${last_ver}.apk"
if [ ! -f "$stock_apk" ]; then
declare -r dl_url=$(dl_apk "https://www.apkmirror.com/apk/deutscher-wetterdienst/warnwetter/warnwetter-${last_ver//./-}-release/" \
"APK</span>[^@]*@\([^#]*\)" \
"$stock_apk")
log "\nWarnWetter version: ${last_ver}"
log "downloaded from: [APKMirror - WarnWetter]($dl_url)"
fi
patch_apk "$stock_apk" "$patched_apk" "-r"
}
build_yt() {
echo "Building YouTube"
reset_template