-
Notifications
You must be signed in to change notification settings - Fork 13
/
install_sc2.sh
executable file
·44 lines (33 loc) · 953 Bytes
/
install_sc2.sh
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
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
# Install SC2 and add the custom maps
if [ -z "$EXP_DIR" ]
then
EXP_DIR=~
fi
echo "EXP_DIR: $EXP_DIR"
cd $EXP_DIR/REFIL
mkdir 3rdparty
cd 3rdparty
export SC2PATH=`pwd`'/StarCraftII'
echo 'SC2PATH is set to '$SC2PATH
if [ ! -d $SC2PATH ]; then
echo 'StarCraftII is not installed. Installing now ...';
wget http://blzdistsc2-a.akamaihd.net/Linux/SC2.4.6.2.69232.zip
unzip -P iagreetotheeula SC2.4.6.2.69232.zip
rm -rf SC2.4.6.2.69232.zip
else
echo 'StarCraftII is already installed.'
fi
echo 'Adding SMAC maps.'
MAP_DIR="$SC2PATH/Maps/"
echo 'MAP_DIR is set to '$MAP_DIR
if [ ! -d $MAP_DIR ]; then
mkdir -p $MAP_DIR
fi
cd ..
wget https://github.com/oxwhirl/smac/releases/download/v0.1-beta1/SMAC_Maps.zip
unzip SMAC_Maps.zip
mv SMAC_Maps $MAP_DIR
rm -rf SMAC_Maps.zip
cp src/envs/starcraft2/maps/SMAC_Maps/empty_passive.SC2Map $MAP_DIR
echo 'StarCraft II and SMAC are installed.'