Skip to content

Commit

Permalink
fix: pop-os gaming dependency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevithakannan2 committed Oct 20, 2024
1 parent dad9b4a commit df008d6
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions core/tabs/system-setup/gaming-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
. ../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)
Expand All @@ -26,12 +25,12 @@ installDepend() {
$AUR_HELPER -S --needed --noconfirm $DEPENDENCIES $DISTRO_DEPS
;;
apt-get|nala)
DISTRO_DEPS="libasound2 libsdl2-2.0-0 wine64 wine32"
DISTRO_DEPS="software-properties-common libasound2 libsdl2-2.0-0 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" apt-add-repository contrib -y
fi
"$ESCALATION_TOOL" "$PACKAGER" update
"$ESCALATION_TOOL" "$PACKAGER" install -y $DEPENDENCIES $DISTRO_DEPS
;;
Expand All @@ -50,7 +49,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
}
Expand Down Expand Up @@ -90,11 +90,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
}
Expand Down

0 comments on commit df008d6

Please sign in to comment.