xref: /glogg/release-win32.sh (revision 9a361c77fce85c9bbe1326d984941ec8feb5541d)
1d9e83e98SNicolas Bonnefon#!/bin/bash
2d9e83e98SNicolas Bonnefon
3d9e83e98SNicolas BonnefonPATH=/cygdrive/c/qt/2009.03/qt/bin:/cygdrive/c/qt/2009.03/mingw/bin/:$PATH
4*9a361c77SNicolas Bonnefonqmake glogg.pro -spec win32-g++ -r CONFIG+=release
5d9e83e98SNicolas Bonnefonmingw32-make
6d9e83e98SNicolas Bonnefoncp /cygdrive/c/qt/2009.03/qt/bin/{QtCore4,QtGui4}.dll release/
7d9e83e98SNicolas Bonnefoncp /cygdrive/c/qt/2009.03/mingw/bin/{libexpat-1,mingwm10}.dll release/
8d9e83e98SNicolas BonnefonVERSION=`git describe`
9*9a361c77SNicolas Bonnefonecho Generating binary distribution for glogg-$VERSION
10*9a361c77SNicolas Bonnefonrm glogg-$VERSION-win32.zip
11d9e83e98SNicolas Bonnefoncd release
12*9a361c77SNicolas Bonnefonzip -9 ../glogg-$VERSION-win32.zip *.dll *.exe
13*9a361c77SNicolas Bonnefoncd ..
14*9a361c77SNicolas Bonnefonecho Generating installer for glogg-$VERSION
15*9a361c77SNicolas Bonnefon/cygdrive/c/Program\ Files/NSIS/makensis -DVERSION=$VERSION glogg.nsi
16