mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-25 19:30:08 +01:00
scripts: install with destdir option on CI
This commit is contained in:
parent
55b4597390
commit
576f0a72c5
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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%/*}
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user