#!/bin/bash # # Short script to do cross compilation with MXE on Linux # # by James Hammons # (C) 2012 Underground Software # TARGET=wozmaker #echo "Cross compiling ${TARGET} for Win32..." echo "Cross compiling ${TARGET} for Win64..." export PATH=/opt/mxe/usr/bin:$PATH rm Makefile #/opt/mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5 /opt/mxe/usr/bin/x86_64-w64-mingw32.static-qmake-qt5 \ && make clean && make -f Makefile.Release \ && rel=`git log -1 --pretty=format:%ci | cut -d ' ' -f 1 | tr -d -` \ && cd release && upx -9v ${TARGET}.exe && zip -9v ${TARGET}-${rel}.zip ${TARGET}.exe