Dry run both windows executables - downgrade PyInstaller to 3.5 for win64

This commit is contained in:
Lee Miller 2022-07-27 23:55:42 +03:00
parent 8652fef620
commit 6310fc8919
Signed by untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -96,16 +96,18 @@ function install_openssl(){
function install_pyinstaller() function install_pyinstaller()
{ {
cd "${BASE_DIR}" || exit 1 cd "${BASE_DIR}" || exit 1
echo "Installing PyInstaller" echo "Installing PyInstaller"
if [ "${MACHINE_TYPE}" == 'x86_64' ]; then if [ "${MACHINE_TYPE}" == 'x86_64' ]; then
# 3.6 is the last version to support python 2.7 # 3.6 is the last version to support python 2.7
wine python -m pip install -I pyinstaller==3.6 # but the resulting executable cannot run in wine
else # see https://github.com/pyinstaller/pyinstaller/issues/4628
# 3.2.1 is the last version to work on XP wine python -m pip install -I pyinstaller==3.5
# see https://github.com/pyinstaller/pyinstaller/issues/2931 else
wine python -m pip install -I pyinstaller==3.2.1 # 3.2.1 is the last version to work on XP
fi # see https://github.com/pyinstaller/pyinstaller/issues/2931
wine python -m pip install -I pyinstaller==3.2.1
fi
} }
function install_pip_depends() function install_pip_depends()
@ -169,11 +171,14 @@ function build_exe(){
} }
function dryrun_exe(){ function dryrun_exe(){
cd "${BASE_DIR}" || exit 1 cd "${BASE_DIR}" || exit 1
if [ ! "${MACHINE_TYPE}" == 'x86_64' ]; then local VERSION=$(python setup.py --version)
local VERSION=$(python setup.py --version) if [ "${MACHINE_TYPE}" == 'x86_64' ]; then
wine packages/pyinstaller/dist/Bitmessage_x86_$VERSION.exe -t EXE=Bitmessage_x64_$VERSION.exe
fi else
EXE=Bitmessage_x86_$VERSION.exe
fi
wine packages/pyinstaller/dist/$EXE -t
} }
# prepare on ubuntu # prepare on ubuntu