2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 09:56:22 +01:00

scripts: install with destdir option on CI

This commit is contained in:
Alibek Omarov 2021-11-25 16:57:02 +03:00
parent 55b4597390
commit 576f0a72c5
5 changed files with 10 additions and 10 deletions

View File

@ -12,7 +12,7 @@ build_engine()
cd "$CIRRUS_WORKING_DIR" || die
if [ "$APP" = "xashds" ]; then
./waf configure -T release -d -W || die
./waf configure -T release -d || die
elif [ "$APP" = "xash3d-fwgs" ]; then
./waf configure -T release --enable-stb -W --enable-utils || die
else

View File

@ -46,9 +46,9 @@ build_engine()
fi
if [ "$1" = "dedicated" ]; then
./waf configure -T release -d -W $AMD64 || die
./waf configure -T release -d $AMD64 || die
elif [ "$1" = "full" ]; then
./waf configure --sdl2=SDL2_linux -T release --enable-stb --prefix="$APPDIR" -W $AMD64 --enable-utils || die
./waf configure --sdl2=SDL2_linux -T release --enable-stb $AMD64 --enable-utils || die
else
die
fi
@ -60,7 +60,7 @@ build_appimage()
{
cd "$BUILDDIR" || die
./waf install || die
./waf install --destdir="$APPDIR" || die
# Generate extras.pak
python3 scripts/makepak.py xash-extras/ "$APPDIR/extras.pak"

View File

@ -12,7 +12,7 @@ cd hlsdk
./waf configure -T fast --enable-magx --enable-simple-mod-hacks build install --destdir=../Xash || die
cd ../
./waf configure -T fast --enable-magx --win-style-install --prefix='' build install --destdir=Xash/ || die
./waf configure -T fast --enable-magx build install --destdir=Xash/ || die
cat > Xash/run.sh << 'EOF'
mypath=${0%/*}

View File

@ -11,9 +11,9 @@ fi
# NOTE: to build with other version use --msvc_version during configuration
# NOTE: sometimes you may need to add WinSDK to %PATH%
./waf.bat configure -s "SDL2_VC" -T "debug" --prefix=`pwd` --enable-utils $AMD64 || die
./waf.bat configure -s "SDL2_VC" -T "debug" --enable-utils $AMD64 || die
./waf.bat build -v || die
./waf.bat install || die
./waf.bat install --prefix=`pwd` || die
if [ "$ARCH" = "i386" ]; then
cp SDL2_VC/lib/x86/SDL2.dll . # Install SDL2

View File

@ -46,9 +46,9 @@ build_engine()
fi
if [ "$1" = "dedicated" ]; then
./waf configure -T release -d -W $AMD64 || die
./waf configure -T release -d $AMD64 || die
elif [ "$1" = "full" ]; then
./waf configure --sdl2=SDL2_linux -T release --enable-stb --prefix="$APPDIR" -W $AMD64 --enable-utils || die
./waf configure --sdl2=SDL2_linux -T release --enable-stb $AMD64 --enable-utils || die
else
die
fi
@ -60,7 +60,7 @@ build_archive()
{
cd "$BUILDDIR" || die
./waf install || die
./waf install --prefix="$APPDIR" || die
# Generate extras.pak
python3 scripts/makepak.py xash-extras/ "$APPDIR/extras.pak"