From dcd160ec88f1a5e45cb0ce1d37ea780a49ae4a79 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Sat, 19 Jun 2021 18:32:05 -0700 Subject: [PATCH] Update windows-before-install.sh --- src/travis/windows-before-install.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/travis/windows-before-install.sh b/src/travis/windows-before-install.sh index 67dc5b12..47c84f05 100755 --- a/src/travis/windows-before-install.sh +++ b/src/travis/windows-before-install.sh @@ -63,13 +63,17 @@ cd $mypath $pip install --upgrade pip $pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 $pip install -U $pip install --upgrade -r src/requirements.txt +#$pip install --upgrade pyinstaller $pip install wheel -export url="https://codeload.github.com/pyinstaller/pyinstaller/tar.gz/${PYINSTALLER_VERSION}" -echo "Downloading ${url}" -curl -o pyinstaller.tar.gz --compressed "${url}" -tar xf pyinstaller.tar.gz -cd "pyinstaller-${PYINSTALLER_VERSION}/" -# remove pre-compiled bootloaders so we fail if bootloader compile fails +# Install PyInstaller from source and build bootloader +# to try and avoid getting flagged as malware since +# lots of malware uses PyInstaller default bootloader +# https://stackoverflow.com/questions/53584395/how-to-recompile-the-bootloader-of-pyinstaller +echo "Downloading PyInstaller..." +wget --quiet https://github.com/pyinstaller/pyinstaller/archive/$PYINSTALLER_VERSIOB.tar.gz +tar xf $PYINSTALLER_VERSION.tar.gz +mv pyinstaller-$PYINSTALLER_VERSION pyinstaller +cd pyinstaller rm -rf PyInstaller/bootloader/*bit cd bootloader if [ "${PLATFORM}" == "x86" ]; then