hostile-takeover/game/sdl/linux/install.sh
2016-08-31 23:54:48 -04:00

23 lines
636 B
Bash
Executable File

#!/usr/bin/env bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
HT_ROOT=$SCRIPT_DIR/../../..
echo "mkdir ~/Games"
mkdir ~/Games
echo "mkdir ~/Games/HostileTakeover"
mkdir ~/Games/HostileTakeover
# If release build, htdata832.pdb needs to be marked
cp $HT_ROOT/game/htdata832.pdb ~/Games/HostileTakeover
cp $HT_ROOT/game/htsfx.pdb ~/Games/HostileTakeover
if [ "$(uname -s)" == "Darwin" ]; then
cp -r $HT_ROOT/game/sdl/SDL2/osx/SDL2.framework ~/Games/HostileTakeover
else
echo "sudo password may be required to download and install the SDL2 library..."
sudo apt-get updates
sudo apt-get install libsdl2-dev
fi