-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathosuinstall.sh
52 lines (45 loc) · 1.45 KB
/
osuinstall.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
49
50
51
52
#!/bin/bash
#Colors
RED='\033[0;31m'
NC='\033[0m'
printf "${RED}Osu! Linux installation tool by Luky${NC}\n"
function installprerequisites() {
command -v wine > /dev/null && { printf "Wine is already installed\n"; } || { sudo apt-get install wine; }
command -v winetricks > /dev/null && { printf "Winetricks is already installed\n"; } || { sudo apt-get install winetricks; }
}
function makeprefix() {
WINEARCH=win32 winecfg
}
function installosuprerequisites() {
winetricks dotnet20
}
function installosu() {
wget "http://m1.ppy.sh/r/osu!install.exe"
wine osu!install.exe
}
PS3='Please enter your choice: '
options=("Install Wine and Winetricks" "Make a 32bit prefix" "Install OSU! Prerequisites trough winetricks" "Install OSU!" "Quit")
select opt in "${options[@]}"
do
case $opt in
"Install Wine and Winetricks")
printf "${RED}Make sure you have backupped the old .wine folder ${NC}\n"
installprerequisites
;;
"Make a 32bit prefix")
makeprefix
;;
"Install OSU! Prerequisites trough winetricks")
installosuprerequisites
printf "${RED}Osu! Linux installation tool by Luky${NC}\n"
;;
"Install OSU!")
installosu
printf "${RED}In case you have some problems, make sure you've installed the prerequisites${NC}\n"
;;
"Quit")
exit 0
;;
*) echo invalid option;;
esac
done