Add MultiMC installation

This commit is contained in:
Mylloon 2021-12-01 11:46:38 +01:00
parent f14d47baaf
commit 45ac0994e3
3 changed files with 22 additions and 0 deletions

View file

@ -155,6 +155,11 @@ Mon guide à suivre lors d'une réinstallation d'Ubuntu
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installRust.sh -O tmp.sh && bash tmp.sh; rm tmp.sh wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installRust.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
``` ```
- Installe MultiMC
```bash
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installMultiMC.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
```
<details> <details>
<summary>Mémo de commande utile peu de temps après une réinstallation/mise à jour</summary> <summary>Mémo de commande utile peu de temps après une réinstallation/mise à jour</summary>

View file

@ -86,6 +86,9 @@ then
# Move the taskbar to the bottom # Move the taskbar to the bottom
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM
# Install MultiMC
bash installMultiMC.sh
# info # info
echo "" echo ""
echo "" echo ""

14
installMultiMC.sh Normal file
View file

@ -0,0 +1,14 @@
# On récupère la dernière version de MultiMC
wget -q https://api.github.com/repos/MultiMC/Launcher/releases/latest
echo "Retrieve the last package..."
grep 'browser_download_url": ".*.deb"' latest | awk '{ print substr ($0, 32 ) }' | awk '{ print substr( $0, 1, length($0)-1 ) }' > url
rm latest
wget -q --show-progress -i url -O MultiMC.deb
rm url
sudo apt install ./MultiMC.deb -y
rm MultiMC.deb
echo ""
echo "MultiMC installed!"