diff --git a/.travis.yml b/.travis.yml index 4d510b095..ba2886231 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ python: "3.7" env: global: + # must also be updated in wine_build.sh - TORBA=v0.5.3 jobs: @@ -60,7 +61,7 @@ jobs: - docker pull lbry/pyinstaller34_32bits:py371 script: - python scripts/set_build.py - - docker run -v "$(pwd):/src/lbry" lbry/pyinstaller34_32bits:py371 lbry/scripts/wine_build.sh ${TORBA} + - docker run -v "$(pwd):/src/lbry" lbry/pyinstaller34_32bits:py371 lbry/scripts/wine_build.sh - sudo zip -j dist/lbrynet-windows.zip dist/lbrynet.exe deploy: provider: releases diff --git a/scripts/wine_build.sh b/scripts/wine_build.sh index c46377ce2..ab23e9a3d 100755 --- a/scripts/wine_build.sh +++ b/scripts/wine_build.sh @@ -1,8 +1,11 @@ set -x +# must also be updated in travis.yml +TORBA_VERSION=v0.5.3 rm -rf /tmp/.wine-* apt-get -qq update apt-get -qq install -y git + pip install setuptools_scm cd lbry @@ -11,7 +14,13 @@ cd lbry wget -Onetifaces-0.10.7-cp37-cp37m-win32.whl https://ci.appveyor.com/api/buildjobs/6hworunifsymrhp2/artifacts/dist%2Fnetifaces-0.10.7-cp37-cp37m-win32.whl pip install netifaces-0.10.7-cp37-cp37m-win32.whl -pip install git+https://github.com/lbryio/torba.git@${1}#egg=torba +git clone --depth=1 --single-branch --branch ${TORBA_VERSION} https://github.com/lbryio/torba.git +cd torba +pip install . +cd .. +rm -rf torba + +pip show torba pip install -e . pip install pywin32