From 45ac0994e392cfc013f80101b49f4034e2d3cacc Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 1 Dec 2021 11:46:38 +0100 Subject: [PATCH] Add MultiMC installation --- README.md | 5 +++++ installGlobalScript.sh | 3 +++ installMultiMC.sh | 14 ++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 installMultiMC.sh diff --git a/README.md b/README.md index 55c7a22..c4e3c9e 100644 --- a/README.md +++ b/README.md @@ -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 ``` +- 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 + ``` +
Mémo de commande utile peu de temps après une réinstallation/mise à jour diff --git a/installGlobalScript.sh b/installGlobalScript.sh index 1d12a3e..00c104c 100644 --- a/installGlobalScript.sh +++ b/installGlobalScript.sh @@ -86,6 +86,9 @@ then # Move the taskbar to the bottom gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM + # Install MultiMC + bash installMultiMC.sh + # info echo "" echo "" diff --git a/installMultiMC.sh b/installMultiMC.sh new file mode 100644 index 0000000..19b4383 --- /dev/null +++ b/installMultiMC.sh @@ -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!"