From 652223d9bc7a8adaf8144a55a380c0ad148cc1a5 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Mon, 12 Aug 2019 12:29:51 -0400 Subject: [PATCH] Pyinstaller windows 64 bit bootloader compile --- src/travis/windows-x86_64-before-install.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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/*