build.sh aktualisiert

This commit is contained in:
Phil 2023-08-20 16:02:21 +02:00
parent 64403d08d3
commit f0a330a5b5

View file

@ -1,6 +1,9 @@
#!/bin/ash #!/bin/ash
base=xonotic-data.pk3dir base=xonotic-data.pk3dir
# Apply specialsauce
cp -R xonoticspecialsauce/* xonotic-data.pk3dir
: ${PROGS_OUT:=$PWD} : ${PROGS_OUT:=$PWD}
export PROGS_OUT export PROGS_OUT
stamp=$(date +"%s") stamp=$(date +"%s")
@ -15,4 +18,8 @@ echo "Compiled successfully!";
mkdir -vp $(dirname "$0")/compiled mkdir -vp $(dirname "$0")/compiled
mv -v *.dat $(dirname "$0")/compiled mv -v *.dat $(dirname "$0")/compiled
rm *.lno rm *.lno
if [[ -z "${DRONE_TAG}" ]]; then
zip -9 compiled-$DRONE_TAG.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
else
zip -9 compiled.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat zip -9 compiled.zip compiled/csprogs.dat compiled/progs.dat compiled/menu.dat
fi