generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Install Prism Launcher | ||
|
||
source /etc/lsb-release | ||
|
||
sudo apt update | ||
|
||
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/7.1/PrismLauncher-Linux-Qt6-portable-7.1.tar.gz | ||
tar -xvf PrismLauncher-Linux-Qt6-Portable-7.1.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 |