xref: /glogg/release-win32-x.sh (revision 21a1b6dca17b27fc159f6642d5f1709e2b02f301)
1#!/bin/bash
2
3# Build glogg for win32 using the cross-compiler
4
5QTXDIR=$HOME/qt-x-win32
6
7make clean
8if [ -z "$VERSION" ]; then
9    echo "Building default version"
10    qmake glogg.pro -spec win32-x-g++ -r CONFIG+="release win32"
11else
12    echo "Building version $VERSION"
13    qmake glogg.pro -spec win32-x-g++ -r CONFIG+="release win32" VERSION="$VERSION"
14fi
15make -j3
16cp $QTXDIR/qt_win/2010.02.1/qt/bin/{QtCore4,QtGui4}.dll release/
17cp $QTXDIR/qt_win/2010.02.1/mingw/bin/libgcc_s_dw2-1.dll release/
18gunzip -c /usr/share/doc/mingw32-runtime/mingwm10.dll.gz >release/mingwm10.dll
19if [ -z "$VERSION" ]; then
20    VERSION=`git describe`;
21fi
22echo Generating installer for glogg-$VERSION
23wine $QTXDIR/NSIS/makensis -DVERSION=$VERSION glogg.nsi
24