Skip to content

Commit

Permalink
more scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
AV306 committed Jul 12, 2023
1 parent 3f4a03d commit c20728c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ SHELL ["/bin/bash", "-c"]
RUN sudo apt update && sudo apt upgrade -y && sudo apt autoremove #&& sudo apt install qt5-default -y
RUN source "/home/gitpod/.sdkman/bin/sdkman-init.sh" \
&& sdk install java 17.0.7-zulu < /dev/null

RUN source /etc/lsb-release
33 changes: 33 additions & 0 deletions plinstall
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

0 comments on commit c20728c

Please sign in to comment.