diff --git a/src/travis/windows-x86_64-before-install.sh b/src/travis/windows-x86_64-before-install.sh index 690cb839..9f375c71 100755 --- a/src/travis/windows-x86_64-before-install.sh +++ b/src/travis/windows-x86_64-before-install.sh @@ -24,4 +24,17 @@ pip install --upgrade pip pip freeze > upgrades.txt pip install --upgrade -r upgrades.txt pip install --upgrade -r src/requirements.txt -pip install --upgrade pyinstaller +#pip install --upgrade pyinstaller +# 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/releases/download/v$PYINSTALLER_VERSION/PyInstaller-$PYINSTALLER_VERSION.tar.gz +tar xf PyInstaller-$PYINSTALLER_VERSION.tar.gz +cd PyInstaller-$PYINSTALLER_VERSION/bootloader +echo "bootloader before:" +md5sum ../PyInstaller/bootloader/Windows-64bit/* +/c/python37/python ./waf all --target-arch=64bit +echo "bootloader after:" +md5sum ../PyInstaller/bootloader/Windows-64bit/*