-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwinelike.sh
executable file
·55 lines (46 loc) · 1.4 KB
/
winelike.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
53
54
55
#!/usr/bin/env bash
## Welcome to WineLike Script Helper!
## - Repo link: https://github.com/NelloKudo/WineLike
## - Remember that this needs Wine dependencies to be already installed: https://github.com/lutris/docs/blob/master/WineDependencies.md
## Use this script to handle your prefix however you want!
export WINEPREFIX=$HOME/.WineLike
export PATH=/home/$USER/.local/share/winelike/wine-tkg/bin:$PATH
function Echo(){
echo -e '\033[1;32m'"WineLike:\033[0m $*"
}
function Help(){
echo ""
Echo "--------------------------------------"
Echo "Quick guide on how to use this script:"
Echo "--------------------------------------"
Echo "winelike --kill: Kills WineLike if hanging!"
Echo "winelike --winecfg: Runs winecfg on prefix"
Echo "winelike --regedit: Runs regedit on prefix"
Echo "winelike --winetricks: Runs winetricks on prefix"
Echo "winelike --remove: Removes WineLike from PC"
Echo "winelike: prints this! :3"
Echo "--------------------------------------"
echo ""
}
case $1 in
'')
Help
;;
'--kill')
wineserver -k
;;
'--winecfg')
winecfg
;;
'--regedit')
regedit
;;
'--remove')
Echo "Uninstalling WineLike.."
rm -rf ~/.WineLike
rm -rf "$HOME/.local/share/winelike"
rm "$HOME/.local/share/applications/WineLike.desktop"
sudo rm /usr/local/bin/winelike
Echo "Uninstall finished!!"
;;
esac