From d0afe55ba09047c0f79fea292e93af1950e1bce0 Mon Sep 17 00:00:00 2001 From: antonioettorre Date: Wed, 7 Feb 2024 15:58:13 +0100 Subject: [PATCH] Python3.11 zip files instruction --- installers/windows/README.md | 6 ++++-- installers/windows/nsis/py_to_zip.bash | 7 ++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/installers/windows/README.md b/installers/windows/README.md index 014cadd2..aa256804 100644 --- a/installers/windows/README.md +++ b/installers/windows/README.md @@ -14,7 +14,9 @@ Microsoft Windows is not required. ### Build Python3 in Wine in Docker ```bash -$ docker run -v $(pwd):/io -ti --entrypoint ./nsis/py_to_zip.bash tobix/pywine:3.11 +$ cd nsis +$ docker run -v $(pwd):/io -ti tobix/pywine:3.11 bash +# execute /io/py_to_zip.bash ``` ### Build with Docker @@ -37,7 +39,7 @@ otherwise `master` is used. ```bash $ docker run -e GEM_SET_BRANCH=engine-X.Y -e GEM_SET_RELEASE=Z -v $(pwd):/io -t -i --rm wine /io/docker/build.sh ``` -where `Z` is the build number for the package. +where `Z` is the build number for the package. #### Output types ```bash diff --git a/installers/windows/nsis/py_to_zip.bash b/installers/windows/nsis/py_to_zip.bash index 6a3f53ac..2748bd39 100644 --- a/installers/windows/nsis/py_to_zip.bash +++ b/installers/windows/nsis/py_to_zip.bash @@ -1,11 +1,12 @@ #!/usr/bin/env bash # Create zip files to use with installer for windows -PYTHON_MAJOR=39 -PYTHON_VERSION=3.9.11 +PYTHON_MAJOR=311 +PYTHON_VERSION=3.11.6 # echo "create zip files to use with installer for windows" apt update apt install -y zip -cd /opt/wineprefix/drive_c/Python${PYTHON_MAJOR} +cd /opt/wineprefix/drive_c/Python zip -r -1 python-${PYTHON_VERSION}-win64.zip . +mv python-${PYTHON_VERSION}-win64.zip /io #