]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - snapshot.sh
Fix blending issues by sorting transparent objects
[dragonblocks_alpha.git] / snapshot.sh
1 #! /bin/bash
2 mkdir .build
3 cp -r * .build/
4 cd .build/
5 mkdir build
6 cd build
7 if ! (cmake -B . -S ../src -DCMAKE_BUILD_TYPE=Release && make clean && make -j$(nproc)); then
8         cd ../..
9         rm -rf .build
10         exit 1
11 fi
12 cp Dragonblocks DragonblocksServer ..
13 cd ..
14 rm -rf .git* deps src build BUILDING.md snapshot.sh upload.sh DragonblocksAlpha-*.zip screenshot-*.png
15 cd ..
16 mv .build DragonblocksAlpha
17 VERSION=`git tag --points-at HEAD`
18 if [[ $VERSION = "" ]]; then
19         VERSION=`git rev-parse --short HEAD`
20 fi
21 zip -r DragonblocksAlpha-$VERSION.zip DragonblocksAlpha/*
22 rm -rf DragonblocksAlpha