comparison Resources/Builders/MinGW64-Python3.12/docker-compile.sh @ 164:519e285ce627 OrthancPython-4.2

hotfix to add Windows builders for Python 3.12
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 16 May 2024 23:09:09 +0200
parents
children 3678a028f1f6
comparison
equal deleted inserted replaced
158:5adf2e1186ab 164:519e285ce627
1 #!/bin/bash
2
3 set -ex
4
5 if [ "$1" != "Debug" -a "$1" != "Release" ]; then
6 echo "Please provide build type: Debug or Release"
7 exit -1
8 fi
9
10 if [ -t 1 ]; then
11 # TTY is available => use interactive mode
12 DOCKER_FLAGS='-i'
13 fi
14
15 ROOT_DIR=`dirname $(readlink -f $0)`/../../..
16
17 mkdir -p ${ROOT_DIR}/docker-build/
18
19 ( cd ${ROOT_DIR}/Resources/Builders/ && \
20 docker build \
21 -f ./Dockerfile-MinGW-BuildEnvironment \
22 -t mingw-python-build . )
23
24 docker run -t ${DOCKER_FLAGS} --rm \
25 --user $(id -u):$(id -g) \
26 -v ${ROOT_DIR}:/source:ro \
27 -v ${ROOT_DIR}/docker-build:/target:rw \
28 mingw-python-build \
29 bash /source/Resources/Builders/MinGW64-Python3.12/docker-internal.sh $1
30
31 ls -lR ${ROOT_DIR}/docker-build/