From a64ef966534f8dba6af889ba4bfce15691bfc85b Mon Sep 17 00:00:00 2001 From: Nippy Date: Sun, 1 Nov 2026 18:13:54 +0100 Subject: új telepítő MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- raveos-center/adat/actions/lutris.sh | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 raveos-center/adat/actions/lutris.sh (limited to 'raveos-center/adat/actions/lutris.sh') diff --git a/raveos-center/adat/actions/lutris.sh b/raveos-center/adat/actions/lutris.sh new file mode 100755 index 0000000..d057c87 --- /dev/null +++ b/raveos-center/adat/actions/lutris.sh @@ -0,0 +1,41 @@ +#!/bin/bash +# Lutris + Wine telepítő script +# Környezeti változók: INSTALL_USER, INSTALL_HOME + +set -e + +USER="$INSTALL_USER" +HOME="$INSTALL_HOME" +ACTION="${1:-install}" + +remove_installed_packages() { + local installed=() + local pkg + for pkg in "$@"; do + if pacman -Qq "$pkg" >/dev/null 2>&1; then + installed+=("$pkg") + fi + done + if ((${#installed[@]})); then + pacman -Rnsu --noconfirm "${installed[@]}" + fi +} + +if [[ "$ACTION" == "remove" ]]; then + echo "Removing Lutris + Wine for $USER..." + remove_installed_packages lutris wine winetricks wine-mono wine-gecko + echo "Lutris + Wine removal complete!" + exit 0 +fi + +echo "Installing Lutris + Wine for $USER..." + +# Lutris és Wine telepítése +pacman -S --noconfirm --needed \ + lutris \ + wine \ + winetricks \ + wine-mono \ + wine-gecko + +echo "Lutris + Wine installation complete!" -- cgit v1.3