Compare commits

...

6 Commits

Author SHA1 Message Date
Jeevitha Kannan K S
ee61dd7c4c
Merge 75652b483f into f0734f361c 2024-11-06 15:51:38 +00:00
Jeevitha Kannan K S
75652b483f
fix: shellcheck warning , formatting 2024-11-06 06:34:40 +05:30
Jeevitha Kannan K S
21ca4cce88
Merge branch 'main' into debian-gaming-deps 2024-11-06 06:27:59 +05:30
JEEVITHA KANNAN K S
ff44b7095f
Update gaming-setup.sh 2024-10-21 21:44:12 +05:30
Jeevitha Kannan K S
df008d63e3
fix: pop-os gaming dependency issue 2024-10-20 21:33:35 +05:30
Jeevitha Kannan K S
dad9b4a234
fix: debian gaming deps 2024-10-20 15:36:25 +05:30

View File

@ -1,10 +1,11 @@
#!/bin/sh -e
# shellcheck disable=SC2086
. ../common-script.sh
installDepend() {
# Check for dependencies
DEPENDENCIES='wine dbus'
DEPENDENCIES='wine dbus git'
printf "%b\n" "${YELLOW}Installing dependencies...${RC}"
case "$PACKAGER" in
pacman)
@ -25,13 +26,16 @@ installDepend() {
$AUR_HELPER -S --needed --noconfirm $DEPENDENCIES $DISTRO_DEPS
;;
apt-get|nala)
apt-get | nala)
DISTRO_DEPS="libasound2-plugins:i386 libsdl2-2.0-0:i386 libdbus-1-3:i386 libsqlite3-0:i386 wine64 wine32"
"$ESCALATION_TOOL" "$PACKAGER" update
"$ESCALATION_TOOL" dpkg --add-architecture i386
"$ESCALATION_TOOL" "$PACKAGER" install -y software-properties-common
"$ESCALATION_TOOL" apt-add-repository contrib -y
if [ "$DTYPE" != "pop" ]; then
"$ESCALATION_TOOL" "$PACKAGER" install -y software-properties-common
"$ESCALATION_TOOL" apt-add-repository contrib -y
fi
"$ESCALATION_TOOL" "$PACKAGER" update
"$ESCALATION_TOOL" "$PACKAGER" install -y $DEPENDENCIES $DISTRO_DEPS
;;
@ -50,7 +54,8 @@ installDepend() {
"$ESCALATION_TOOL" "$PACKAGER" -n install $DEPENDENCIES
;;
*)
"$ESCALATION_TOOL" "$PACKAGER" install -y $DEPENDENCIES
printf "%b\n" "${RED}Unsupported package manager ${PACKAGER}${RC}"
exit 1
;;
esac
}
@ -61,7 +66,7 @@ installAdditionalDepend() {
DISTRO_DEPS='steam lutris goverlay'
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm $DISTRO_DEPS
;;
apt-get|nala)
apt-get | nala)
version=$(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' https://github.com/lutris/lutris |
grep -v 'beta' |
tail -n1 |
@ -71,7 +76,7 @@ installAdditionalDepend() {
curl -sSLo "lutris_${version_no_v}_all.deb" "https://github.com/lutris/lutris/releases/download/${version}/lutris_${version_no_v}_all.deb"
printf "%b\n" "${YELLOW}Installing Lutris...${RC}"
"$ESCALATION_TOOL" "$PACKAGER" install ./lutris_"${version_no_v}"_all.deb
"$ESCALATION_TOOL" "$PACKAGER" install -y ./lutris_"${version_no_v}"_all.deb
rm lutris_"${version_no_v}"_all.deb
@ -90,11 +95,12 @@ installAdditionalDepend() {
"$ESCALATION_TOOL" "$PACKAGER" install -y $DISTRO_DEPS
;;
zypper)
# Flatpak
DISTRO_DEPS='lutris'
"$ESCALATION_TOOL" "$PACKAGER" -n install $DISTRO_DEPS
;;
*)
printf "%b\n" "${RED}Unsupported package manager ${PACKAGER}${RC}"
exit 1
;;
esac
}