Files
HLRTest/container/build-and-test.sh
T
Ivan Avdeev c6edc9f3fe embed steam Half-Life data into the image itself
allows also adding hlsdk libs to the image
makes it easier to build, manage, and run
2026-04-08 01:17:49 -04:00

29 lines
476 B
Bash
Executable File

#!/bin/bash
set -eux
echo DESTINATION_IS_WRITABLE > /opt/hl/testfile
XDG_RUNTIME_DIR=/tmp weston \
--backend=headless \
--renderer=gl \
--width=1280 \
--height=800 \
--socket=wayland-headless &
build() {
pushd /build/xash3d-fwgs
./waf configure -T release -8 \
build \
install --destdir=/opt/hl
popd
}
rendertest() {
pushd /build/HLRTest/render
WAYLAND_DISPLAY=/tmp/wayland-headless ./rendertest.py --xash-dir /opt/hl run
popd
}
time build
time rendertest