X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=snapshot.sh;h=06df6c67ef22ce8dc352945b0aa9c814f01ca6d1;hb=c26c61c4d89e713c584e4808e0559860f5ebe9bc;hp=39751b12fd891583fb1165443fe1b059dd3bb57a;hpb=6daf9252e0c4e9641967d28c0f305cfb71ef93ed;p=dragonblocks_alpha.git diff --git a/snapshot.sh b/snapshot.sh index 39751b1..06df6c6 100755 --- a/snapshot.sh +++ b/snapshot.sh @@ -1,11 +1,17 @@ #! /bin/bash mkdir .build cp -r * .build/ -cd .build/src -make clobber && make all RELEASE=TRUE -j$(nproc) && make clean +cd .build/ +mkdir build +cd build +if ! (cmake -B . -S ../src -DCMAKE_BUILD_TYPE=Release && make clean && make -j$(nproc)); then + cd ../.. + rm -rf .build + exit 1 +fi cp Dragonblocks DragonblocksServer .. cd .. -rm -rf .git* deps src BUILDING.md snapshot.sh upload.sh DragonblocksAlpha-*.zip +rm -rf .git* deps src build BUILDING.md snapshot.sh upload.sh DragonblocksAlpha-*.zip cd .. mv .build DragonblocksAlpha VERSION=`git tag --points-at HEAD`