-
Notifications
You must be signed in to change notification settings - Fork 3
/
init-install.sh
executable file
·34 lines (30 loc) · 1.05 KB
/
init-install.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
#!/bin/sh
echo
echo
echo
echo
echo
echo "Installing CLEAN LoxoneConfig into ./config/wine directory"
echo
read -p "Press enter to continue"
echo
if [ ! -f "/config/LoxoneConfigSetup.exe" ]; then
cd /config
echo "Try to auto download loxone config installer.."
# urgh, loxone doesn't provide a direct link to latest installer, lets parse out the download link while we cry a little
wget -O i.zip $(wget -O - https://www.loxone.com/enen/support/downloads/ | sed -r 's~(href="|src=")([^"]+).*~\n\1\2~g' | awk -F"=\"" '{print $2}' | grep LoxoneConfigSetup_ |head -1)
unzip i.zip && rm i.zip
if [ ! -f "/config/LoxoneConfigSetup.exe" ]; then
echo "ERROR: ./config/LoxoneConfigSetup.exe missing! auto download failed too! please put installer file there.."
exit 1
fi
fi
export WINEDEBUG=-all
echo Installing winetricks helper for fonts and sharper rendering..
/usr/bin/winetricks fontsmooth-rgb
#/usr/bin/winetricks corefonts
/usr/bin/winetricks gdiplus
echo Installing LoxoneConfig..
wine "/config/LoxoneConfigSetup.exe"
echo Install finished. yay!
exit 0