SHARE
TWEET

Minecraft Installer for Linux (Updated 1/14/13)

thefinn93 Jan 14th, 2013 32 Never
  1. #!/bin/bash
  2. mkdir /opt/minecraft
  3. echo "Downloading Minecraft..."
  4. wget -O /opt/minecraft/minecraft.jar https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft.jar
  5. echo "Downloading icon..."
  6. wget -O /opt/minecraft/minecraft.png http://www.minecraft.net/favicon.png
  7. echo "Installing desktop entry..."
  8. echo "[Desktop Entry]" > /usr/share/applications/minecraft.desktop
  9. echo "Name=Minecraft" >> /usr/share/applications/minecraft.desktop
  10. echo "Comment=Place blocks and build anything you can imagine!" >> /usr/share/applications/minecraft.desktop
  11. echo "Exec=java -jar /opt/minecraft/minecraft.jar" >> /usr/share/applications/minecraft.desktop
  12. echo "Icon=/opt/minecraft/minecraft.png" >> /usr/share/applications/minecraft.desktop
  13. echo "Terminal=false" >> /usr/share/applications/minecraft.desktop
  14. echo "Type=Application" >> /usr/share/applications/minecraft.desktop
  15. echo "Categories=Application;Game;" >> /usr/share/applications/minecraft.desktop
  16. chmod +x /usr/share/applications/minecraft.desktop
RAW Paste Data
Top