feat: Add automatic XIVLauncher installation to the installer script and update the README to reflect this new capability.

This commit is contained in:
CPTN Cosmo 2026-01-17 22:18:36 +01:00
parent a9ba614537
commit 1ec9339b26
No known key found for this signature in database
2 changed files with 122 additions and 4 deletions

View file

@ -4,6 +4,7 @@ This is a wrapper script for Linux that launches `xivlauncher-core` (Native or F
## Features
- **Auto-Installation**: Automatically downloads and installs XIVLauncher if it's missing (using Flatpak or AUR depending on your OS).
- **Auto-Detection**: Automatically detects if you are using the native `xivlauncher-core` (Arch/AUR) or the Flatpak version.
- **OTP Injection**: Generates TOTP codes and sends them to the launcher's internal server.
- **URL Support**: Accepts standard Base32 secrets OR full `otpauth://` URLs (e.g. from QR codes).
@ -11,7 +12,7 @@ This is a wrapper script for Linux that launches `xivlauncher-core` (Native or F
## Installation (Steam Deck / Linux Desktop)
The easiest way to install is using the provided installer script.
The easiest way to install is using the provided installer script. This script will check if XIVLauncher is installed and install it for you if needed (via Flatpak on SteamOS/Bazzite, or AUR on Arch).
1. **Run the Installer:**
```bash
@ -21,9 +22,10 @@ The easiest way to install is using the provided installer script.
When prompted, enter your **TOTP Secret** or paste a full **otpauth:// URL**.
**What it does:**
* Creates `~/.config/xivlauncher-wrapper/config.json`.
* Installs the wrapper to `~/.local/bin/xivlauncher-wrapper`.
* Installs a `.desktop` file to `~/.local/share/applications/` so it appears in your application menu.
* **Checks for XIVLauncher:** Installs it via Flatpak or AUR if not found.
* **Creates Config:** Creates `~/.config/xivlauncher-wrapper/config.json`.
* **Installs Wrapper:** Installs the wrapper to `~/.local/bin/xivlauncher-wrapper`.
* **Installs Shortcut:** Installs a `.desktop` file to `~/.local/share/applications/` so it appears in your application menu.
### Steam Integration (Steam Deck)
1. Switch to Desktop Mode.