summaryrefslogtreecommitdiff
path: root/raveos-app-installer/data/actions/lutris.sh
diff options
context:
space:
mode:
authorNippy <nippy@rp1.hu>2026-07-03 21:13:06 +0200
committerNippy <nippy@rp1.hu>2026-07-03 21:13:06 +0200
commit725b9b1defce4e0f05476cdee9c5a79a6b531afa (patch)
tree26b13ec4a752330ad34db5ca731c705f83230450 /raveos-app-installer/data/actions/lutris.sh
parent839c2889342cfe56ec1fdcf0ea1e6cc26dab4eec (diff)
downloadRaveOS-PKGBUILD-725b9b1defce4e0f05476cdee9c5a79a6b531afa.tar.gz
RaveOS-PKGBUILD-725b9b1defce4e0f05476cdee9c5a79a6b531afa.zip
add new raveos app, welcome app
Diffstat (limited to 'raveos-app-installer/data/actions/lutris.sh')
-rwxr-xr-xraveos-app-installer/data/actions/lutris.sh41
1 files changed, 41 insertions, 0 deletions
diff --git a/raveos-app-installer/data/actions/lutris.sh b/raveos-app-installer/data/actions/lutris.sh
new file mode 100755
index 0000000..dda6274
--- /dev/null
+++ b/raveos-app-installer/data/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 -Rcns --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!"