blobwarsAttrition/build/win32/build.sh

40 lines
566 B
Bash
Raw Normal View History

2018-03-23 19:38:12 +01:00
#!/bin/bash -e
cd `dirname $0`
BUILDROOT="build/win32"
cd ../..
VERSION=$1
2018-04-16 20:11:41 +02:00
REVISION=$2
FOLDER="blobWarsAttrition-$1.$2"
2018-03-23 19:38:12 +01:00
OUT="$BUILDROOT/$FOLDER"
make -f makefile.win32 clean
make -f makefile.win32
mkdir -p $OUT
rm -rf $OUT/*
cp blobWarsAttrition.exe $OUT
cp -rL data $OUT
cp -rL gfx $OUT
cp -rL music $OUT
cp -rL sound $OUT
cp -rL manual $OUT
cp -rL locale $OUT
cp LICENSE $OUT
cp README.md $OUT
cp /usr/x86_64-w64-mingw32/bin/*.dll $OUT
cd $BUILDROOT
zip -r blobWarsAttrition-${VERSION}-${REVISION}.win32.zip $FOLDER
mv *.zip ../../dist
rm -rf $FOLDER