This repository has been archived on 2022-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
manjaroConfiguration/installMultiMC.sh

18 lines
649 B
Bash

# On récupère le lien vers la dernière version de MultiMC
echo "Retrieve the last package..."
latest=$(wget -qO- https://multimc.org/ | grep "Debian/Ubuntu") # récupération depuis le site
pat='href="(.*)" ' # regex
[[ $latest =~ $pat ]] # utilisation du regex
# On télécharge le paquet
wget -q --show-progress -i ${BASH_REMATCH[1]} -O MultiMC.deb
sudo apt install ./MultiMC.deb -y
rm MultiMC.deb
# We change the Ubuntu desktop shortcut from MultiMC to Minecraft
if [ -f /usr/share/applications/multimc.desktop ] ; then
sudo sed -i "7s#.*#Name=Minecraft#" /usr/share/applications/multimc.desktop
fi
echo -e "\nMultiMC installed! 🎉"