src_prepare-overlay/games-simulation/clou2/files/clou2
2020-03-21 23:37:48 +01:00

20 lines
412 B
Bash

#!/usr/bin/env bash
set -xeuo pipefail
export WINEPREFIX=~/.wine_clou2
export WINEARCH=win32
if [ ! -d ~/.local/share/Clou2 ]; then
mkdir -p ~/.local/share/Clou2
pushd ~/.local/share/Clou2
for i in $(ls /usr/share/games/clou2 | grep -v ^clou2\\.reg$); do
ln -s /usr/share/games/clou2/$i $i
done
popd
fi
pushd ~/.local/share/Clou2
wine regedit /C /usr/share/games/clou2/clou2.reg
wine Sting.exe
popd