Fixed tlauncher not launching and added a warning at the README.md

This commit is contained in:
MatheusTT
2024-11-16 21:57:42 -03:00
parent 5839bd58d4
commit f8dfcc96b6
3 changed files with 41 additions and 35 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
[[ "$(whoami)" = "root" ]] && echo "Script must be run as a normal user." && exit
@@ -11,13 +11,13 @@ END="\033[0m"
## (They use java 8, but instead i'm installing the most recent java version).
# Downloading packages
pkgs=(
wget
jdk-openjdk
jre-openjdk
jre-openjdk-headless
java-openjfx
wget
jdk-openjdk
jre-openjdk
jre-openjdk-headless
java-openjfx
)
sudo pacman -S --noconfirm --needed "${pkgs[@]}"
sudo pacman -Sy --noconfirm --needed "${pkgs[@]}"
# Downloading TLauncher
echo -e "\n${GREEN}Downloading TLauncher...${END}"
@@ -35,4 +35,4 @@ sudo mv src/tlauncher /usr/bin/
sudo mv src/tlauncher.png /usr/share/icons
sudo mv src/tlauncher.desktop /usr/share/applications
echo -e "\n${GREEN}Installation Complete!${END}"
echo -e "\n${GREEN}Installation Complete!${END}"