add interactive prompt to optionally skip XIVLauncher installation during setup

This commit is contained in:
CPTN Cosmo 2026-04-18 15:42:49 +02:00
parent 16719f7400
commit c754fc7e7a

View file

@ -65,7 +65,12 @@ install_aur_version() {
echo "Checking for XIVLauncher installation..." echo "Checking for XIVLauncher installation..."
if ! check_xivlauncher_installed; then if ! check_xivlauncher_installed; then
echo "XIVLauncher not found. Attempting auto-installation..." echo "XIVLauncher (Native/Flatpak) not found."
echo "If you use XLM (Steam Compatibility Tool), you can skip this step."
read -p "Would you like to install XIVLauncher? [y/N]: " INSTALL_XIVL
if [[ "$INSTALL_XIVL" =~ ^[Yy]$ ]]; then
echo "Attempting auto-installation..."
if [ -f "/etc/os-release" ]; then if [ -f "/etc/os-release" ]; then
. /etc/os-release . /etc/os-release
@ -117,11 +122,14 @@ if ! check_xivlauncher_installed; then
# Final Check # Final Check
if ! check_xivlauncher_installed; then if ! check_xivlauncher_installed; then
echo "WARNING: Automated installation failed or XIVLauncher is still not detected." echo "WARNING: Automated installation failed or XIVLauncher is still not detected."
echo "You will need to install XIVLauncher manually." echo "You will need to install XIVLauncher manually if you don't use XLM."
read -p "Press Enter to continue with wrapper installation anyway..." _ read -p "Press Enter to continue with wrapper installation anyway..." _
else else
echo "XIVLauncher installed successfully!" echo "XIVLauncher installed successfully!"
fi fi
else
echo "Skipping XIVLauncher installation."
fi
else else
echo "XIVLauncher is already present." echo "XIVLauncher is already present."
fi fi