2023-02-07 18:34:58 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
. scripts/lib.sh
|
|
|
|
|
|
|
|
cd "$BUILDDIR" || die
|
|
|
|
|
2023-02-07 19:54:00 +01:00
|
|
|
rm -rf artifacts build pkgtemp
|
2023-02-07 18:34:58 +01:00
|
|
|
|
|
|
|
mkdir -p pkgtemp/xash3d/{valve,gearbox,bshift}/{dlls,cl_dlls} || die
|
2023-02-07 19:54:00 +01:00
|
|
|
mkdir -p artifacts/ || die
|
2023-02-07 18:34:58 +01:00
|
|
|
|
2023-02-07 19:54:00 +01:00
|
|
|
echo "Running build script in Docker container..."
|
2023-02-07 18:34:58 +01:00
|
|
|
|
2023-02-07 19:54:00 +01:00
|
|
|
docker --name xash-build --rm -v `pwd`:`pwd` -w `pwd` devkitpro/devkita64:latest bash ./scripts/gha/build_nswitch_docker.sh || die
|
2023-02-07 18:34:58 +01:00
|
|
|
|
|
|
|
echo "Packaging artifacts..."
|
|
|
|
|
2023-02-07 19:54:00 +01:00
|
|
|
find artifacts
|
|
|
|
7z a -t7z artifacts/xash3d-fwgs-nswitch.7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -r artifacts/xash3d
|