Skip to content

Commit

Permalink
Python3.11 zip files instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioettorre committed Feb 7, 2024
1 parent 67508c3 commit d0afe55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions installers/windows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
7 changes: 4 additions & 3 deletions installers/windows/nsis/py_to_zip.bash
Original file line number Diff line number Diff line change
@@ -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
#

0 comments on commit d0afe55

Please sign in to comment.