-
Notifications
You must be signed in to change notification settings - Fork 0
/
client_setup.sh
48 lines (38 loc) · 1.08 KB
/
client_setup.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
40
41
42
43
44
45
46
47
48
#!/bin/bash
# script to download and setup the desktop files for FTB_Launcher and MultiMC
# FTB Client
if [ ! -d ~/ftb ]; then
mkdir -p ~/ftb
fi
cd ~/ftb
curl http://ftb.forgecdn.net/FTB2/launcher/FTB_Launcher.jar -o FTB_Launcher.jar
curl -k https://apexminecrafthosting.com/wp-content/uploads/2015/09/ftb-logo-square_565.png -o ftb_logo.png
cat << EOF > ~/.local/share/applications/FTB.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=FTB
Exec=java -jar ${HOME}/ftb/FTB_Launcher.jar
Icon=${HOME}/ftb/ftb_logo.png
EOF
# MultiMC Client
if [ ! -d ~/MultiMC ]; then
mkdir -p ~/MultiMC
fi
cd ~/MultiMC
curl https://multimc.org/images/infinity32.png -o MultiMC.png
curl https://files.multimc.org/downloads/mmc-stable-lin64.tar.gz -o mmc-stable-lin64.tar.gz
tar -zvf mmc-stable-lin64.tar.gz
rm -f mmc-stable-lin64.tar.gz
cat << EOF > ~/.local/share/applications/MultiMC.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=MultiMC
Exec=bash -c ${HOME}/MultiMC/MultiMC
Icon=${HOME}/MultiMC/MultiMC.png
EOF