From 96f7a9e2c583ebe2ef2a4b9e39a094376af41e10 Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Sun, 26 Oct 2014 15:48:14 +0100 Subject: [PATCH] Upload windows build script --- windows/build.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 windows/build.sh diff --git a/windows/build.sh b/windows/build.sh new file mode 100644 index 000000000..339b09b51 --- /dev/null +++ b/windows/build.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# Builds qTox for Windows and prepares a redistribuable .zip archive +export PATH=/root/mxe/usr/bin:$PATH +tar xvf libs.tar.gz +tar xvf libtoxcore-win32.tar.gz -C libs +/root/mxe/usr/i686-pc-mingw32.shared/qt5/bin/qmake +make clean +make -j4 || { echo 'make failed, aborting' ; exit 1; } + +rm -rf qTox-win32 +rm -rf qTox-win32.zip +mkdir qTox-win32 +tar xvf qtox-dlls.tar.gz -C qTox-win32 +cp libs/bin/* qTox-win32 +cp release/qtox.exe qTox-win32 +rm -rf qTox-win32.zip +zip -r qTox-win32.zip qTox-win32 +chmod 777 qTox-win32.zip