summarylogtreecommitdiffstats
path: root/euroscope-bin
blob: 2ae36c100bbb009fa267bc4210557517424dc13e (plain)
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
#!/bin/bash
unset WINEPREFIX

progName="euroscope"
export WINEPREFIX="$HOME/.local/share/wineprefixes/$progName"
export WINEARCH="win32"

install_deps() {
  notify-send --app-name=EuroScope --icon=euroscope "Installing Dependencies" "It may take a few minutes."
  winetricks --unattended iertutil msls31 msxml6 urlmon vcrun2019 wininet
  cp "/usr/share/$progName/EuroScope.ttf" "$WINEPREFIX/drive_c/windows/Fonts/"
  touch "$WINEPREFIX/.installed"
}

if [ ! -d $WINEPREFIX ] ; then
  mkdir -p $WINEPREFIX
  wine wineboot -u
  install_deps
fi

if [ ! -f "$WINEPREFIX/.installed" ] ; then
  wine wineboot -u
  install_deps
fi

if [ ! -d "$HOME/.config/euroscope" ] ; then
  mkdir -p "$HOME/.config/euroscope"
fi

cd "$HOME/.config/euroscope" && WINEDEBUG=-all wine "/usr/share/euroscope-bin/EuroScope/EuroScope.exe" "$@"