Skip to content

Instantly share code, notes, and snippets.

@cr0t0
Last active October 2, 2025 18:39
Show Gist options
  • Select an option

  • Save cr0t0/c5c178f4621aefd61e805e1729d21fc1 to your computer and use it in GitHub Desktop.

Select an option

Save cr0t0/c5c178f4621aefd61e805e1729d21fc1 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Tested on Fedora 39/40 Worstation (Gnome) and Fedora 42 KDE spin
# MINECRAFT JAVA & BEDROCK EDITION - https://www.minecraft.net/en-us/download
mkdir -p $HOME/Games/minecraft/launcher && cd $HOME/Games/minecraft/launcher
curl -LO https://launcher.mojang.com/download/Minecraft.tar.gz
tar -xvf Minecraft.tar.gz --strip-components=1
/usr/bin/rm Minecraft.tar.gz
cd
ln -sf $HOME/Games/minecraft $HOME/.minecraft
mkdir -p $HOME/.local/share/applications
cat <<EOF > $HOME/.local/share/applications/minecraft.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Minecraft
Comment=Minecraft is a game made up of blocks, creatures, and community.
Categories=Game;ActionGame;AdventureGame;
StartupNotify=true
Path=$HOME/Games/minecraft
Icon=$HOME/Games/minecraft/launcher/icons/minecraft64.png
Exec=$HOME/Games/minecraft/launcher/minecraft-launcher
EOF
./Games/minecraft/launcher/minecraft-launcher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment