src_prepare-overlay/games-strategy/warcraft3/files/warcraft3_worldedit

23 lines
470 B
Plaintext
Raw Normal View History

2020-03-22 19:38:03 +01:00
#!/usr/bin/env bash
set -xeuo pipefail
export WC3_DATA_DIR="/usr/share/games/warcraft3"
export WINEPREFIX=~/.wine_wc3roc
export WINEARCH=win32
if [ ! -d ~/.local/share/Warcraft3 ]; then
mkdir -p ~/.local/share/Warcraft3
pushd ~/.local/share/Warcraft3
for i in $(ls ${WC3_DATA_DIR} | grep -vE '^replay$|^save$'); do
ln -s ${WC3_DATA_DIR}/$i $i
done
mkdir replay
mkdir save
popd
fi
pushd ~/.local/share/Warcraft3
winetricks quartz
wine WorldEdit.exe
popd