Skip to content

Commit

Permalink
updating Gaming For Fedora 41 (ChrisTitusTech#681)
Browse files Browse the repository at this point in the history
* updating Gaming For Fedora 41

Red Hat Already Has OpenH264 Installed When You Update To Fedora 41

* Made Change's So Can Work With Fedora 41 And Older

* Update core/tabs/system-setup/gaming-setup.sh

Co-authored-by: Adam Perkowski <[email protected]>

* Update core/tabs/system-setup/gaming-setup.sh

Co-authored-by: Nyx <[email protected]>

---------

Co-authored-by: Adam Perkowski <[email protected]>
Co-authored-by: Nyx <[email protected]>
  • Loading branch information
3 people authored Sep 28, 2024
1 parent 2d1e45a commit c7622d8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions core/tabs/system-setup/gaming-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,15 @@ installDepend() {
"$ESCALATION_TOOL" "$PACKAGER" install -y "$DEPENDENCIES" "$DISTRO_DEPS"
;;
dnf)
"$ESCALATION_TOOL" "$PACKAGER" install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm -y
"$ESCALATION_TOOL" "$PACKAGER" config-manager --enable fedora-cisco-openh264 -y
"$ESCALATION_TOOL" "$PACKAGER" install -y "$DEPENDENCIES"
if [ "$(rpm -E %fedora)" -le 41 ]; then
"$ESCALATION_TOOL" "$PACKAGER" install ffmpeg ffmpeg-libs -y
"$ESCALATION_TOOL" "$PACKAGER" install -y "$DEPENDENCIES"
else
printf "%b\n" "${CYAN}Fedora < 41 detected. Installing rpmfusion repos.${RC}"
"$ESCALATION_TOOL" "$PACKAGER" install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-"$(rpm -E %fedora)".noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-"$(rpm -E %fedora)".noarch.rpm -y
"$ESCALATION_TOOL" "$PACKAGER" config-manager --enable fedora-cisco-openh264 -y
"$ESCALATION_TOOL" "$PACKAGER" install -y "$DEPENDENCIES"
fi
;;
zypper)
"$ESCALATION_TOOL" "$PACKAGER" -n install "$DEPENDENCIES"
Expand Down

0 comments on commit c7622d8

Please sign in to comment.