add interactive prompt to optionally skip XIVLauncher installation during setup
This commit is contained in:
parent
16719f7400
commit
c754fc7e7a
1 changed files with 57 additions and 49 deletions
12
installer.sh
12
installer.sh
|
|
@ -65,7 +65,12 @@ install_aur_version() {
|
|||
echo "Checking for XIVLauncher installation..."
|
||||
|
||||
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
|
||||
. /etc/os-release
|
||||
|
|
@ -117,11 +122,14 @@ if ! check_xivlauncher_installed; then
|
|||
# Final Check
|
||||
if ! check_xivlauncher_installed; then
|
||||
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..." _
|
||||
else
|
||||
echo "XIVLauncher installed successfully!"
|
||||
fi
|
||||
else
|
||||
echo "Skipping XIVLauncher installation."
|
||||
fi
|
||||
else
|
||||
echo "XIVLauncher is already present."
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue