Use api for flathub app id check to reduce build fails and speedup builds (#387)

This commit is contained in:
Mr Sticky Piston 2025-02-14 11:39:10 +01:00 committed by GitHub
parent 2586223b3e
commit 0a11642c79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,7 +117,7 @@ check_flatpak_id_validity_from_flathub () {
USER_FLATHUB_REPO=""
fi
FLATHUB_REPO_LINK="https://dl.flathub.org/repo/flathub.flatpakrepo"
URL="https://flathub.org/apps"
URL="https://flathub.org/api/v2/stats"
CONFIG_FILE="${1}"
INSTALL_LEVEL="${2}"
get_json_array INSTALL "try .$INSTALL_LEVEL.install[]" "${CONFIG_FILE}"