summaryrefslogtreecommitdiff
path: root/raveos-center/adat/actions/lutris.sh
diff options
context:
space:
mode:
authorNippy <nippy@Nippy-Mac-mini.local>2026-11-01 18:13:54 +0100
committerNippy <nippy@Nippy-Mac-mini.local>2026-11-01 18:13:54 +0100
commita64ef966534f8dba6af889ba4bfce15691bfc85b (patch)
treeb30f284d05b80fa115569ab220deae13797fad6f /raveos-center/adat/actions/lutris.sh
parent919f977b40016f588b0c8532c8a57f6035056b95 (diff)
downloadRaveOS-PKGBUILD-a64ef966534f8dba6af889ba4bfce15691bfc85b.tar.gz
RaveOS-PKGBUILD-a64ef966534f8dba6af889ba4bfce15691bfc85b.zip
új telepítő
Diffstat (limited to 'raveos-center/adat/actions/lutris.sh')
-rwxr-xr-xraveos-center/adat/actions/lutris.sh41
1 files changed, 41 insertions, 0 deletions
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!"