Skip to content

Commit

Permalink
Update windows-before-install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
taers232c committed Jun 20, 2021
1 parent ae8740b commit dcd160e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/travis/windows-before-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dcd160e

Please sign in to comment.