Add an availability shield for AUR

This commit is contained in:
David Heinemeier Hansson 2025-08-24 11:54:19 +02:00
parent ccf13e5902
commit aaefc4f208

View File

@ -3,6 +3,16 @@
# Install build tools # Install build tools
sudo pacman -Sy --needed --noconfirm base-devel sudo pacman -Sy --needed --noconfirm base-devel
# Ensure AUR is available
while true; do
if curl -s --retry 4 --connect-timeout 30 --head -A "omarchy-update" "https://aur.archlinux.org"; then
break
else
echo -e "\n\e[31mAUR is unavailable. Retrying in 10 seconds.\e[0m"
sleep 10
fi
done
# Only add Chaotic-AUR if the architecture is x86_64 so ARM users can build the packages # Only add Chaotic-AUR if the architecture is x86_64 so ARM users can build the packages
if [[ "$(uname -m)" == "x86_64" ]] && [ -z "$DISABLE_CHAOTIC" ] && ! command -v yay &>/dev/null; then if [[ "$(uname -m)" == "x86_64" ]] && [ -z "$DISABLE_CHAOTIC" ] && ! command -v yay &>/dev/null; then
# Try installing Chaotic-AUR keyring and mirrorlist # Try installing Chaotic-AUR keyring and mirrorlist