OSDN Git Service

instantupdate auto repairs repos
[instantos/instantOS.git] / programs / instantwine
1 #!/bin/bash
2
3 if command -v winetricks && pacman -Qi wine &>/dev/null && [ -e ~/.wine ]; then
4     echo "dependency check successful"
5 else
6     echo "please install wine, winetricks and create a wineprefix"
7     exit
8 fi
9
10 if ! checkinternet; then
11     echo "internet is required"
12     exit
13 fi
14
15 cd
16 cd ${WINEPREFIX:-.wine}
17 cd drive_c/windows/Resources/Themes
18 mkdir Windows\ 10
19 cd Windows*
20 wget -O 'Windows 10.msstyles' http://winetheme.surge.sh/wine.msstyles
21
22 # font smoothing
23 winetricks settings fontsmooth=rgb
24
25 # user has to manually set that up in the gui
26 zenity --info --text "when the next window pops up, click on Desktop-integration and select windows 10 as a theme, then click ok"
27 winecfg
28
29 # did the user apply the theme?
30 if ! grep -q 'Windows 10' ~/.wine/user.reg; then
31     zenity --info --text "you didn't do it, did you? Try again, last chance"
32     winecfg
33     zenity --info --text "Well I told you what to do, I'll leave you alone now"
34 fi