Last active
April 26, 2020 15:40
-
-
Save liilac/1d49997846ccab68038c032866f761d8 to your computer and use it in GitHub Desktop.
Installs the Minecraft Java Edition launcher to a user's home directory on Arch Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# walk-through of quick installation of Minecraft on Arch Linux and derivatives | |
# make folders to install Minecraft files into | |
mkdir -p ~/.local/opt ~/.local/share/applications ~/.local/share/icons/svg | |
# download Minecraft launcher icon | |
wget -O ~/.local/share/icons/svg/minecraft-launcher.svg "https://launcher.mojang.com/download/minecraft-launcher.svg" | |
# download and install desktop shortcut I made | |
wget -O ~/.local/share/applications/minecraft-launcher.desktop "https://gist.github.com/liilac/15d4cd91d6dd40a4444542282a184733/raw/4018f681d9622cbc12014d5ce3210f5acad307dd/minecraft-launcher.desktop" | |
update-mime-database | |
# download Minecraft launcher archive | |
cd ~/.local/opt | |
wget "https://launcher.mojang.com/download/Minecraft.tar.gz" | |
# extract the minecraft archive to the ~/.local/opt/ | |
tar xf Minecraft.tar.gz | |
# delete the downloaded archive file now that we're done with it | |
rm -f Minecraft.tar.gz | |
# install Java 8 if not already installed | |
sudo pacman -Syu --noconfirm jre8-openjdk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Quick install
If you would prefer to run the above as a single command, rather than interactively, copy and paste the following into a terminal