„install-xash3ds.sh“ ändern
This commit is contained in:
parent
6aca7e9b1e
commit
5ed594ef71
1 changed files with 3 additions and 4 deletions
|
@ -13,8 +13,10 @@ if [ -z "$1" ]
|
||||||
then
|
then
|
||||||
XASHDS_PORT=27015
|
XASHDS_PORT=27015
|
||||||
CLIENT=false
|
CLIENT=false
|
||||||
|
PACKAGES="build-essential ca-certificates cmake curl git gnupg2 g++-multilib lib32gcc1-s1 libstdc++6:i386 python unzip xz-utils zip"
|
||||||
else
|
else
|
||||||
CLIENT=true
|
CLIENT=true
|
||||||
|
PACKAGES="build-essential gcc-multilib g++-multilib python libsdl2-dev:i386 libfontconfig-dev:i386 libfreetype6-dev:i386"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#if [ "$2" == "client" ]
|
#if [ "$2" == "client" ]
|
||||||
|
@ -38,7 +40,7 @@ else
|
||||||
export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig
|
export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig
|
||||||
fi
|
fi
|
||||||
sudo dpkg --add-architecture i386
|
sudo dpkg --add-architecture i386
|
||||||
apt-get install -y --no-install-recommends build-essential ca-certificates cmake curl git gnupg2 g++-multilib lib32gcc1-s1 libstdc++6:i386 python unzip xz-utils zip
|
apt-get install -y --no-install-recommends
|
||||||
|
|
||||||
## compile xash3ds
|
## compile xash3ds
|
||||||
# go to build directory
|
# go to build directory
|
||||||
|
@ -50,9 +52,6 @@ cd xash3d-fwgs
|
||||||
## cmake -DXASH_DEDICATED=ON -DCMAKE_C_FLAGS="-m32" -DCMAKE_CXX_FLAGS="-m32" ../
|
## cmake -DXASH_DEDICATED=ON -DCMAKE_C_FLAGS="-m32" -DCMAKE_CXX_FLAGS="-m32" ../
|
||||||
## make
|
## make
|
||||||
|
|
||||||
|
|
||||||
WAF_OPTION
|
|
||||||
|
|
||||||
./waf configure -T release $WAF_OPTION
|
./waf configure -T release $WAF_OPTION
|
||||||
./waf make
|
./waf make
|
||||||
./waf install --destdir=bin/
|
./waf install --destdir=bin/
|
||||||
|
|
Loading…
Reference in a new issue