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

25 lines
498 B
Plaintext
Raw Normal View History

2020-03-22 19:38:03 +01:00
#!/usr/bin/env bash
set -euo pipefail
2020-03-22 20:19:49 +01:00
IFS=$'\n\t'
2020-03-22 19:38:03 +01:00
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
mkdir Errors
2020-03-22 19:38:03 +01:00
popd
fi
pushd ~/.local/share/Warcraft3
winetricks quartz
wine worldedit.exe
2020-03-22 19:38:03 +01:00
popd