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
|
2018-04-22 10:43:49 +02:00
|
|
|
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/*
|
|
|
|
|
2018-04-22 10:43:49 +02:00
|
|
|
cp blobwarsAttrition.exe $OUT
|
2018-03-23 19:38:12 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2018-05-18 08:42:14 +02:00
|
|
|
zip -r blobwarsAttrition-${VERSION}.${REVISION}.win32.zip $FOLDER
|
2018-03-23 19:38:12 +01:00
|
|
|
|
|
|
|
mv *.zip ../../dist
|
|
|
|
|
|
|
|
rm -rf $FOLDER
|