forked from Open-RSC/Core-Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Start-Linux.sh
executable file
·38 lines (34 loc) · 836 Bytes
/
Start-Linux.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
#!/bin/bash
exec 0</dev/tty
RED=$(tput setaf 1)
NC=$(tput sgr0) # No Color
clear
echo ""
echo "${RED}Open RSC${NC}
Striving for a replica RSC game and more.
What would you like to do?
Choices:
${RED}1${NC} - Install
${RED}2${NC} - Update and compile code
${RED}3${NC} - Run game server
${RED}4${NC} - Run game client
${RED}5${NC} - Exit"
echo ""
echo "Type the choice number and press enter."
echo ""
read action
if [ "$action" == "1" ]; then
echo ""
echo "Attempting to install the make package for Ubuntu and CentOS - one will work."
echo ""
sudo apt install make -y && sudo yum install make -y
make combined-install
elif [ "$action" == "2" ]; then
make get-updates
elif [ "$action" == "3" ]; then
make run-server
elif [ "$action" == "4" ]; then
make run-client
elif [ "$action" == "5" ]; then
exit
fi