]> Shamusworld >> Repos - wozmaker/blob - cross-compile
Flesh out the disk settings dialog.
[wozmaker] / cross-compile
1 #!/bin/bash
2 #
3 # Short script to do cross compilation with MXE on Linux
4 #
5 # by James Hammons
6 # (C) 2012 Underground Software
7 #
8 TARGET=wozmaker
9 #echo "Cross compiling ${TARGET} for Win32..."
10 echo "Cross compiling ${TARGET} for Win64..."
11 export PATH=/opt/mxe/usr/bin:$PATH
12 rm Makefile
13
14 #/opt/mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5
15 /opt/mxe/usr/bin/x86_64-w64-mingw32.static-qmake-qt5 \
16 && make clean && make -f Makefile.Release \
17 && rel=`git log -1 --pretty=format:%ci | cut -d ' ' -f 1 | tr -d -` \
18 && cd release && upx -9v ${TARGET}.exe && zip -9v ${TARGET}-${rel}.zip ${TARGET}.exe
19