# HG changeset patch # User Sebastien Jodogne # Date 1590692543 -7200 # Node ID 77f4e165e5351154240d29efa6a278811edb0815 # Parent af63e0fe7a7368255c110b5cfebcc7b136d526a2 Resources/Builders/BuildAllWindows.sh diff -r af63e0fe7a73 -r 77f4e165e535 Resources/Builders/BuildAllWindows.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Resources/Builders/BuildAllWindows.sh Thu May 28 21:02:23 2020 +0200 @@ -0,0 +1,40 @@ +#!/bin/bash + +set -e + +if [ "$#" -ne 1 ]; then + echo "Illegal number of parameters: Must provide the target folder" + exit -1 +fi + +# Determine the absolute path to the directory containing the script +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" + +TARGET=$1 +echo "Will publish libraries in folder: ${TARGET}" + +mkdir -p ${TARGET} + +VERSION=`grep "set(PLUGIN_VERSION" ${DIR}/../../CMakeLists.txt | cut -d '"' -f 2` +echo "Version of the Python plugin: ${VERSION}" + + +set -x + +bash ${DIR}/MinGW32-Python2.7/docker-compile.sh Release +cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win32-Python2.7-${VERSION}.dll + +bash ${DIR}/MinGW32-Python3.7/docker-compile.sh Release +cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win32-Python3.7-${VERSION}.dll + +bash ${DIR}/MinGW32-Python3.8/docker-compile.sh Release +cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win32-Python3.8-${VERSION}.dll + +bash ${DIR}/MinGW64-Python2.7/docker-compile.sh Release +cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win64-Python2.7-${VERSION}.dll + +bash ${DIR}/MinGW64-Python3.7/docker-compile.sh Release +cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win64-Python3.7-${VERSION}.dll + +bash ${DIR}/MinGW64-Python3.8/docker-compile.sh Release +cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win64-Python3.8-${VERSION}.dll