forked from jshridha/docker-blueiris
-
Notifications
You must be signed in to change notification settings - Fork 1
/
blueiris.sh
executable file
·31 lines (27 loc) · 992 Bytes
/
blueiris.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
#!/bin/bash
PREFIX_DIR=${WINEPREFIX}
BLUEIRIS_EXE="$PREFIX_DIR/drive_c/Program Files/Blue Iris ${BLUEIRIS_VERSION}/BlueIris.exe"
BLUEIRIS_INSTALL_PATH="$PREFIX_DIR/drive_c/Program Files/Blue Iris ${BLUEIRIS_VERSION}"
INSTALL_EXE=$HOME/blueiris.exe
if [ ! -d "$PREFIX_DIR/drive_c" ]; then
winetricks win10
winetricks -q corefonts wininet vcrun2019 mfc42
fi
if [ ! -e "$BLUEIRIS_EXE" ] ; then
if [ ! -e "$INSTALL_EXE" ] ; then
if [ "$BLUEIRIS_VERSION" == "4" ]; then
wget -O blueiris.exe https://blueirissoftware.com/BlueIris_48603.exe
else
wget https://blueirissoftware.com/blueiris.exe
fi
fi
wine "blueiris.exe"
rm blueiris.exe
if [ "$BLUEIRIS_VERSION" == "5" ]; then
unzip -o "${BLUEIRIS_INSTALL_PATH}/ui3.zip" -d "${BLUEIRIS_INSTALL_PATH}/www/"
fi
wine reg import service.reg && sleep 5
kill 1
fi
wine reg import service.reg && sleep 5 && wine net start blueiris && sleep 5
wine "${BLUEIRIS_EXE}"