Browse Source

scripts: install with destdir option on CI

pull/2/head
Alibek Omarov 3 years ago
parent
commit
576f0a72c5
  1. 2
      scripts/cirrus/build_freebsd.sh
  2. 6
      scripts/gha/build_linux.sh
  3. 2
      scripts/gha/build_motomagx.sh
  4. 4
      scripts/gha/build_win32.sh
  5. 6
      scripts/travis/build_linux.sh

2
scripts/cirrus/build_freebsd.sh

@ -12,7 +12,7 @@ build_engine() @@ -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

6
scripts/gha/build_linux.sh

@ -46,9 +46,9 @@ build_engine() @@ -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() @@ -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"

2
scripts/gha/build_motomagx.sh

@ -12,7 +12,7 @@ cd hlsdk @@ -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%/*}

4
scripts/gha/build_win32.sh

@ -11,9 +11,9 @@ fi @@ -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

6
scripts/travis/build_linux.sh

@ -46,9 +46,9 @@ build_engine() @@ -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() @@ -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…
Cancel
Save