Skip to content

Commit

Permalink
build-wine: Bump Python to 3.8.7
Browse files Browse the repository at this point in the history
Backported from Electrum 4.1.0.
  • Loading branch information
Jeremy Rand committed Aug 20, 2022
1 parent 5f8b10e commit a03be91
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions contrib/build-wine/prepare-wine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ PYINSTALLER_REPO="https://github.com/SomberNight/pyinstaller.git"
PYINSTALLER_COMMIT="6e455b2c1208465742484436009bfb1e1baf2e01"
# ^ tag 4.0, plus a custom commit that fixes cross-compilation with MinGW

PYTHON_VERSION=3.7.9
PYTHON_VERSION=3.8.7

## These settings probably don't need change
export WINEPREFIX=/opt/wine64
Expand Down Expand Up @@ -95,7 +95,13 @@ info "Building PyInstaller."
echo "const char *electrum_tag = \"tagged by Electrum@$ELECTRUM_COMMIT_HASH\";" >> ./bootloader/src/pyi_main.c
pushd bootloader
# cross-compile to Windows using host python
python3 ./waf all CC=i686-w64-mingw32-gcc CFLAGS="-static -Wno-dangling-else -Wno-error=unused-value -Wno-error=implicit-function-declaration"
python3 ./waf all CC="${GCC_TRIPLET_HOST}-gcc" \
CFLAGS="-static \
-Wno-dangling-else \
-Wno-error=unused-value \
-Wno-error=implicit-function-declaration \
-Wno-error=int-to-pointer-cast \
-Wno-error=stringop-truncation"
popd
# sanity check bootloader is there:
if [ "$WIN_ARCH" = "win32" ] ; then
Expand Down

0 comments on commit a03be91

Please sign in to comment.