-
Notifications
You must be signed in to change notification settings - Fork 2
/
MinecraftRetroInstaller.sh
39 lines (24 loc) · 1.57 KB
/
MinecraftRetroInstaller.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
#install needed software from apt
sudo apt-get -y install matchbox
#create folders for install
sudo mkdir /home/pi/RetroPie/roms/minecraft
#copy appropriate script files
cd /home/pi/RetroPie/roms/minecraft/
#sudo wget https://github.com/techtipsta/MinecraftRetroPie/raw/master/minecraft2.6.sh
sudo wget https://github.com/techtipsta/MinecraftRetroPie/raw/master/minecraft.sh
#Install Minecraft to Emulation Station as its own device menu
sudo sed -i -e 's|</systemList>|<system>\n<name>minecraft</name>\n<fullname>Minecraft</fullname>\n<path>~/RetroPie/roms/minecraft</path>\n<extension>.sh .SH</extension>\n<command>xinit /home/pi/RetroPie/roms/minecraft/minecraft.sh</command>\n<platform>minecraft</platform>\n<theme>minecraft</theme>\n</system>\n</systemList>|g' /etc/emulationstation/es_systems.cfg
sudo mkdir /etc/emulationstation/themes/simple/minecraft
sudo mkdir /etc/emulationstation/themes/simple/minecraft/art/
cd /etc/emulationstation/themes/simple/minecraft/
sudo wget https://github.com/techtipsta/MinecraftRetroPie/raw/master/minecraftmenu/theme.xml
cd /etc/emulationstation/themes/simple/minecraft/art/
sudo wget https://github.com/techtipsta/MinecraftRetroPie/raw/master/minecraftmenu/art/minecraft.png
sudo wget https://github.com/techtipsta/MinecraftRetroPie/raw/master/minecraftmenu/art/minecraft_art.png
sudo wget https://github.com/techtipsta/MinecraftRetroPie/raw/master/minecraftmenu/art/minecraft_art_blur.png
cd /home/pi/RetroPie/roms/minecraft
#Chmod scripts to be runnable
#chmod +x minecraft2.6.sh
chmod +x minecraft.sh
echo -e "\nEverything done! \n"