From c2d2004cbfad071dcc1f049eaf7f0dd620f3e95d Mon Sep 17 00:00:00 2001 From: ddude <32743542+ddude1@users.noreply.github.com> Date: Mon, 6 Aug 2018 21:00:29 -0400 Subject: [PATCH] fix osx translations --- contrib/make_locale | 2 +- contrib/travis/before_install-osx.sh | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/contrib/make_locale b/contrib/make_locale index 9243a8b..98bdad6 100755 --- a/contrib/make_locale +++ b/contrib/make_locale @@ -43,7 +43,7 @@ if crowdin_api_key: # Download & unzip print('Download translations') -s = requests.request('GET', 'https://crowdin.com/download/project/' + crowdin_identifier + '.zip').content +s = requests.request('GET', 'https://crowdin.com/backend/download/project/' + crowdin_identifier + '.zip').content zfobj = zipfile.ZipFile(io.BytesIO(s)) print('Unzip translations') diff --git a/contrib/travis/before_install-osx.sh b/contrib/travis/before_install-osx.sh index 029dc27..fb4cb82 100755 --- a/contrib/travis/before_install-osx.sh +++ b/contrib/travis/before_install-osx.sh @@ -11,12 +11,22 @@ cd build brew update brew install zebra-lucky/qt5/qt5 brew install gettext +brew upgrade gmp curl -O https://www.python.org/ftp/python/3.6.5/python-3.6.5-macosx10.6.pkg curl -O https://bootstrap.pypa.io/get-pip.py sudo installer -pkg python-3.6.5-macosx10.6.pkg -target / sudo python3 get-pip.py + +mkdir libusb +curl https://homebrew.bintray.com/bottles/libusb-1.0.22.el_capitan.bottle.tar.gz | tar xz --directory libusb +cp libusb/libusb/1.0.22/lib/libusb-1.0.dylib . + +curl -O -L https://github.com/zebra-lucky/secp256k1/releases/download/0.1/libsecp256k1-0.1-osx.tgz +tar -xzf libsecp256k1-0.1-osx.tgz +cp libsecp256k1/libsecp256k1.0.dylib . + sudo pip3 install SIP==4.19.8 sudo pip3 install PyQt5==5.7.1 sudo pip3 install Cython==0.28.1