2020-03-22 19:38:03 +01:00
|
|
|
#!/usr/bin/env bash
|
2020-03-29 14:32:34 +02:00
|
|
|
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
|
2020-03-29 14:32:34 +02:00
|
|
|
mkdir Errors
|
2020-03-22 19:38:03 +01:00
|
|
|
popd
|
|
|
|
fi
|
|
|
|
|
|
|
|
pushd ~/.local/share/Warcraft3
|
2020-03-29 14:32:34 +02:00
|
|
|
winetricks quartz
|
|
|
|
wine worldedit.exe
|
2020-03-22 19:38:03 +01:00
|
|
|
popd
|