Change pacman packages to Gentoo packages. Also name, changed from arch to gentoo

This commit is contained in:
SyntaxError!
2026-01-31 23:24:01 -03:00
committed by GitHub
parent 22f2aea4e6
commit c8733904d7

View File

@@ -8,12 +8,27 @@ info_msg() {
echo -e "\n\033[1;32m${1}\033[0m" echo -e "\n\033[1;32m${1}\033[0m"
} }
info_msg "Installing Packages ..." echo "These dependencies need to be installed:"
sudo pacman -Sy --noconfirm --needed wget git unzip jre-openjdk echo "- net-misc/wget"
echo "- dev-vcs/git"
echo "- app-arch/unzip"
echo "- dev-java/openjdk-jre-bin"
echo ""
read -p "Before continue, would you like to compile dependencies? (y/N): " compile
if [[ "$compile" =~ ^[Yy]$ ]]; then
info_msg "Compiling and installing ..."
sleep 2
sudo emerge --noreplace net-misc/wget dev-vcs/git app-arch/unzip dev-java/openjdk-jre-bin
else
info_msg "Installing using binary packages when available ..."
sleep 2
sudo emerge --noreplace -g net-misc/wget dev-vcs/git app-arch/unzip dev-java/openjdk-jre-bin
fi
cleanup() { cleanup() {
info_msg "Cleaning up previous tlauncher-arch installation ..." info_msg "Cleaning up previous tlauncher-gentoo installation ..."
[[ -d "$HOME/tlauncher-arch" ]] && rm -rf "$HOME/tlauncher-arch" [[ -d "$HOME/tlauncher-gentoo" ]] && rm -rf "$HOME/tlauncher-gentoo"
[[ -d "/usr/share/tlauncher" ]] && sudo rm -rf /usr/share/tlauncher [[ -d "/usr/share/tlauncher" ]] && sudo rm -rf /usr/share/tlauncher
[[ -f "/usr/bin/tlauncher" ]] && sudo rm -f /usr/bin/tlauncher [[ -f "/usr/bin/tlauncher" ]] && sudo rm -f /usr/bin/tlauncher
[[ -f "/usr/share/icons/tlauncher.png" ]] && sudo rm -f /usr/share/icons/tlauncher.png [[ -f "/usr/share/icons/tlauncher.png" ]] && sudo rm -f /usr/share/icons/tlauncher.png
@@ -21,7 +36,7 @@ cleanup() {
} }
# If previous clone exists, ask user whether to cleanup # If previous clone exists, ask user whether to cleanup
if [[ -d "$HOME/tlauncher-arch" ]]; then if [[ -d "$HOME/tlauncher-gentoo" ]]; then
read -p "If your previous attempt had failed in middle, you can retry with cleanup. Do you want to cleanup? (y/N): " do_cleanup read -p "If your previous attempt had failed in middle, you can retry with cleanup. Do you want to cleanup? (y/N): " do_cleanup
if [[ "$do_cleanup" =~ ^[Yy]$ ]]; then if [[ "$do_cleanup" =~ ^[Yy]$ ]]; then
cleanup cleanup
@@ -31,8 +46,8 @@ if [[ -d "$HOME/tlauncher-arch" ]]; then
fi fi
info_msg "Cloning Repo ..." info_msg "Cloning Repo ..."
git clone https://github.com/mttomaz/tlauncher-arch.git "$HOME/tlauncher-arch" git clone https://github.com/synt-xerror/tlauncher-gentoo.git "$HOME/tlauncher-gentoo"
cd "$HOME/tlauncher-arch" || exit cd "$HOME/tlauncher-gentoo" || exit
info_msg "Downloading TLauncher ..." info_msg "Downloading TLauncher ..."
wget https://tlauncher.org/jar -P src/ wget https://tlauncher.org/jar -P src/
@@ -58,5 +73,5 @@ if lspci | grep -i 'nvidia' >/dev/null 2>&1; then
fi fi
cd "$OLDPWD" || exit cd "$OLDPWD" || exit
rm -rf "$HOME/tlauncher-arch" rm -rf "$HOME/tlauncher-gentoo"
info_msg "Installation Complete!" info_msg "Installation Complete!"