generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plinstall
executable file
·36 lines (30 loc) · 1.01 KB
/
plinstall
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
30
31
32
33
34
35
36
# Install Prism Launcher
source /etc/lsb-release
if [ "$1" = "update" ]
then
sudo apt update
fi
echo "Distribution: $DISTRIB_CODENAME"
if [ "$DISTRIB_CODENAME" = "jammy" ]
then
# Jammy: use qt6
echo "Installing Prism Launcher Qt6"
sudo apt install qt6-base-dev -y
sudo apt install libqt6core5compat6 -y
mkdir PrismLauncher && cd PrismLauncher
wget https://github.com/PrismLauncher/PrismLauncher/releases/download/8.0/PrismLauncher-Linux-Qt6-portable-8.0.tar.gz
tar -xvf PrismLauncher-Linux-Qt6-portable-8.0.tar.gz
chmod +x ./PrismLauncher
elif [ "$DISTRIB_CODENAME" = "focal" ]
then
# Focal: Use Qt5
echo "Installing Prism Launcher Qt5"
# TODO
sudo apt install qt5-default -y
mkdir PrismLauncher && cd PrismLauncher
wget https://github.com/PrismLauncher/PrismLauncher/releases/download/7.1/PrismLauncher-Linux-portable-7.1.tar.gz
tar -xvf PrismLauncher-Linux-Portable-7.1.tar.gz
chmod +x PrismLauncher
fi
sudo apt upgrade --fix-missing -y
sudo apt autoremove -y