forked from nmlynch94/com.jagexlauncher.JagexLauncher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-jagex-launcher-repo.sh
executable file
·29 lines (23 loc) · 1.2 KB
/
install-jagex-launcher-repo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
FREEDESKTOP_VERSION="23.08"
HAS_NVIDIA=0
if [[ -f /proc/driver/nvidia/version ]]; then
HAS_NVIDIA=1
NVIDIA_VERISON=$(cat /proc/driver/nvidia/version | head -n 1 | awk '{ print $8 }' | sed 's/\./-/g')
fi
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --user --if-not-exists JLauncher https://nmlynch94.github.io/com.jagexlauncher.JagexLauncher/JagexLauncher.flatpakrepo
# https://github.com/flatpak/flatpak/issues/3094
flatpak install --user -y --noninteractive flathub \
org.freedesktop.Platform//${FREEDESKTOP_VERSION} \
org.freedesktop.Platform.Compat.i386/x86_64/${FREEDESKTOP_VERSION} \
org.freedesktop.Platform.GL32.default/x86_64/${FREEDESKTOP_VERSION}
if [[ ${HAS_NVIDIA} -eq 1 ]]; then
flatpak install --user -y --noninteractive flathub \
org.freedesktop.Platform.GL.nvidia-${NVIDIA_VERISON}/x86_64 \
org.freedesktop.Platform.GL32.nvidia-${NVIDIA_VERISON}/x86_64
fi
flatpak install -y --user --noninteractive JLauncher com.jagexlauncher.JagexLauncher
# Perform first time setup
flatpak run com.jagexlauncher.JagexLauncher
echo "DONE. You should now be able to launch from your application menu"