From 97385a0cd928ad7cf7d43e785c95101805fd0731 Mon Sep 17 00:00:00 2001 From: HelpfulSoft1207 <211190746+HelpfulSoft1207@users.noreply.github.com> Date: Wed, 13 May 2026 20:29:20 -0500 Subject: [PATCH 1/2] Create install.sh Create install.sh for other distros that do not require distrobox installation. Will also detect Arch and install from the AUR instead. --- scripts/install.sh | 57 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 scripts/install.sh diff --git a/scripts/install.sh b/scripts/install.sh new file mode 100644 index 0000000..fa473b1 --- /dev/null +++ b/scripts/install.sh @@ -0,0 +1,57 @@ +#!/bin/bash + +# Linux Arctis Manager - Automated Install Script + +set -e + +echo "Installing Linux Arctis Manager..." + +IS_ARCH=false + +# Check for Arch-based systems first +if command -v yay &> /dev/null; then + echo "Detected yay - Installing/upgrading from AUR..." + yay -S --noconfirm linux-arctis-manager + IS_ARCH=true +elif command -v paru &> /dev/null; then + echo "Detected paru - Installing/upgrading from AUR..." + paru -S --noconfirm linux-arctis-manager + IS_ARCH=true +elif command -v pacman &> /dev/null; then + echo "Error: Arch detected but no AUR helper (yay/paru) found. Please install one first." + exit 1 +else + # Check if pipx is installed + if ! command -v pipx &> /dev/null; then + echo "Error: pipx not found. Please install pipx first." + exit 1 + fi + + echo "Fetching latest release..." + DOWNLOAD_URL=$(curl -s https://api.github.com/repos/elegos/Linux-Arctis-Manager/releases/latest | grep -oP '"browser_download_url": "\K[^"]*\.whl' | head -1) + + if [ -z "$DOWNLOAD_URL" ]; then + echo "Error: Could not fetch latest release" + exit 1 + fi + + curl -LO "$DOWNLOAD_URL" + WHEEL_FILE=$(basename "$DOWNLOAD_URL") + + # Check if already installed + if pipx list | grep -q "linux-arctis-manager"; then + echo "Upgrading existing installation..." + pipx install --force "$WHEEL_FILE" + else + echo "Installing linux-arctis-manager..." + pipx install "$WHEEL_FILE" + fi +fi + +# Only run setup if not Arch +if [ "$IS_ARCH" = false ]; then + echo "Setting up service and starting..." + lam-cli setup --systray-autostart --start-now +fi + +echo "✓ Linux Arctis Manager installed and started!" From 6cb535041779ab4fd467ba03b26380e42ff77d5d Mon Sep 17 00:00:00 2001 From: HelpfulSoft1207 <211190746+HelpfulSoft1207@users.noreply.github.com> Date: Thu, 14 May 2026 12:19:29 -0500 Subject: [PATCH 2/2] Remove Arch logic Removed Arch logic as requested by elegos, pipx is the recommended install method. --- scripts/install.sh | 68 +++++++++++++++++----------------------------- 1 file changed, 25 insertions(+), 43 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index fa473b1..7409fe1 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -6,52 +6,34 @@ set -e echo "Installing Linux Arctis Manager..." -IS_ARCH=false - -# Check for Arch-based systems first -if command -v yay &> /dev/null; then - echo "Detected yay - Installing/upgrading from AUR..." - yay -S --noconfirm linux-arctis-manager - IS_ARCH=true -elif command -v paru &> /dev/null; then - echo "Detected paru - Installing/upgrading from AUR..." - paru -S --noconfirm linux-arctis-manager - IS_ARCH=true -elif command -v pacman &> /dev/null; then - echo "Error: Arch detected but no AUR helper (yay/paru) found. Please install one first." +# Check if pipx is installed +if ! command -v pipx &> /dev/null; then + echo "Error: pipx not found. Please install pipx first." + exit 1 +fi + +echo "Fetching latest release..." +DOWNLOAD_URL=$(curl -s https://api.github.com/repos/elegos/Linux-Arctis-Manager/releases/latest | grep -oP '"browser_download_url": "\K[^"]*\.whl' | head -1) + +if [ -z "$DOWNLOAD_URL" ]; then + echo "Error: Could not fetch latest release" exit 1 -else - # Check if pipx is installed - if ! command -v pipx &> /dev/null; then - echo "Error: pipx not found. Please install pipx first." - exit 1 - fi - - echo "Fetching latest release..." - DOWNLOAD_URL=$(curl -s https://api.github.com/repos/elegos/Linux-Arctis-Manager/releases/latest | grep -oP '"browser_download_url": "\K[^"]*\.whl' | head -1) - - if [ -z "$DOWNLOAD_URL" ]; then - echo "Error: Could not fetch latest release" - exit 1 - fi - - curl -LO "$DOWNLOAD_URL" - WHEEL_FILE=$(basename "$DOWNLOAD_URL") - - # Check if already installed - if pipx list | grep -q "linux-arctis-manager"; then - echo "Upgrading existing installation..." - pipx install --force "$WHEEL_FILE" - else - echo "Installing linux-arctis-manager..." - pipx install "$WHEEL_FILE" - fi fi -# Only run setup if not Arch -if [ "$IS_ARCH" = false ]; then - echo "Setting up service and starting..." - lam-cli setup --systray-autostart --start-now +curl -LO "$DOWNLOAD_URL" +WHEEL_FILE=$(basename "$DOWNLOAD_URL") + +# Check if already installed +if pipx list | grep -q "linux-arctis-manager"; then + echo "Upgrading existing installation..." + pipx install --force "$WHEEL_FILE" +else + echo "Installing linux-arctis-manager..." + pipx install "$WHEEL_FILE" fi +# Setup and start service +echo "Setting up service and starting..." +lam-cli setup --systray-autostart --start-now + echo "✓ Linux Arctis Manager installed and started!"