#!/bin/bash
# Exit immediately on error, treat unset variables as errors, propagate pipe failures.
set -euo pipefail
# Load shared log/skip/warn/err helpers from the installer library.
source "$(dirname "${BASH_SOURCE[0]}")/../../lib/logging.sh"

log "Installing LibreWolf (AUR)..."
# librewolf-bin installs the pre-compiled binary release from the AUR, avoiding the
# long Rust + C++ build time of the source package.  LibreWolf is a hardened Firefox
# fork with stricter privacy defaults; it is not in the official Arch repos.
# --answerdiff None / --answerclean All suppress interactive PKGBUILD/clean prompts.
yay -S --answerdiff None --answerclean All --noconfirm librewolf-bin
log "LibreWolf installed."
