2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-26 20:00:53 +01:00
xash3d-fwgs/scripts/gha/build_motomagx.sh

34 lines
787 B
Bash
Raw Normal View History

2019-11-07 00:46:04 +01:00
#!/bin/bash
. scripts/lib.sh
. /opt/toolchains/motomagx/setenv-z6.sh
cd $GITHUB_WORKSPACE
2019-11-07 00:46:04 +01:00
mkdir -p Xash/valve/cl_dlls
mkdir -p Xash/valve/dlls
pushd hlsdk
./waf configure -T fast --enable-magx --enable-simple-mod-hacks build install --destdir=../Xash || die
popd
2019-11-07 00:46:04 +01:00
./waf configure -T fast --enable-magx build install --destdir=Xash/ || die
cat > Xash/run.sh << 'EOF'
mypath=${0%/*}
LIBDIR1=/ezxlocal/download/mystuff/games/lib
LIBDIR2=/mmc/mmca1/games/lib
LIBDIR3=$mypath
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIBDIR1:$LIBDIR2:$LIBDIR3
export HOME=$mypath
export SDL_QT_INVERT_ROTATION=1
export SWAP_PATH=$HOME/xash.swap
cd $mypath
sleep 1
2019-11-07 03:07:10 +01:00
exec $mypath/xash -dev $@
EOF
mkdir -p artifacts/
7z a -t7z artifacts/xash3d-fwgs-magx.7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -r Xash/