From 6c9e68548bdd62abdf182ed2485bb412656cadd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Wed, 10 May 2017 17:16:14 +0200 Subject: Switch to using MSYS2 for Windows build --- win/build.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 win/build.sh (limited to 'win/build.sh') diff --git a/win/build.sh b/win/build.sh new file mode 100644 index 000000000..61e3e4420 --- /dev/null +++ b/win/build.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash +# Copyright 2016 Christoph Reiter +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +DIR="$( cd "$( dirname "$0" )" && pwd )" +source "$DIR"/_base.sh + +function main { + local GIT_TAG=${1:-"master"} + + [[ -d "${BUILD_ROOT}" ]] && (echo "${BUILD_ROOT} already exists"; exit 1) + + # started from the wrong env -> switch + if [ $(echo "$MSYSTEM" | tr '[A-Z]' '[a-z]') != "$MINGW" ]; then + "/${MINGW}.exe" "$0" + exit $? + fi + + install_pre_deps + create_root + install_deps + install_gajim "$GIT_TAG" + cleanup_install + build_installer +} + +main "$@"; -- cgit v1.2.3