tbftss/build/win32/build.sh

41 lines
542 B
Bash
Raw Normal View History

2015-12-05 09:42:10 +01:00
#!/bin/bash -e
2015-12-05 16:47:57 +01:00
cd `dirname $0`
2015-12-05 09:42:10 +01:00
BUILDROOT="build/win32"
cd ../..
VERSION=$1
REVISION=$2
2016-05-24 13:18:29 +02:00
FOLDER="tbftss-$1"
OUT="$BUILDROOT/$FOLDER"
2015-12-05 09:42:10 +01:00
make -f makefile.win32 clean
make -f makefile.win32
mkdir -p $OUT
rm -rf $OUT/*
cp tbftss.exe $OUT
cp -r data $OUT
cp -r gfx $OUT
cp -r music $OUT
cp -r sound $OUT
cp -r manual $OUT
2016-05-20 23:39:07 +02:00
cp -r locale $OUT
2015-12-06 16:03:24 +01:00
cp LICENSE $OUT
2016-05-24 13:18:29 +02:00
cp CHANGELOG $OUT
2015-12-06 16:03:24 +01:00
cp README.md $OUT
2015-12-05 09:42:10 +01:00
cp /usr/x86_64-w64-mingw32/bin/*.dll $OUT
cd $BUILDROOT
2016-05-24 13:18:29 +02:00
zip -r tbftss-${VERSION}-${REVISION}.win32.zip $FOLDER
2015-12-05 09:42:10 +01:00
mv *.zip ../../dist
2016-05-24 13:18:29 +02:00
rm -rf $FOLDER