-WIP-electrum-btcp/contrib/build-wine/prepare-hw.sh

56 lines
1.3 KiB
Bash
Raw Normal View History

2015-10-23 03:51:54 -07:00
#!/bin/bash
2017-10-20 06:49:01 -07:00
TREZOR_GIT_URL=https://github.com/trezor/python-trezor.git
KEEPKEY_GIT_URL=https://github.com/keepkey/python-keepkey.git
BTCHIP_GIT_URL=https://github.com/LedgerHQ/btchip-python.git
2015-10-23 03:51:54 -07:00
BRANCH=master
2017-10-16 19:04:15 -07:00
PYTHON_VERSION=3.5.4
2015-10-23 03:51:54 -07:00
# These settings probably don't need any change
2016-02-24 10:06:13 -08:00
export WINEPREFIX=/opt/wine64
2015-10-23 03:51:54 -07:00
2017-10-16 19:04:15 -07:00
PYHOME=c:/python$PYTHON_VERSION
PYTHON="wine $PYHOME/python.exe -OO -B"
2015-10-23 03:51:54 -07:00
# Let's begin!
cd `dirname $0`
set -e
cd tmp
2017-10-20 06:49:01 -07:00
# download mingw-get-setup.exe
#wget https://downloads.sourceforge.net/project/mingw/Installer/mingw-get-setup.exe
2015-10-23 03:51:54 -07:00
#wine mingw-get-setup.exe
#echo "add c:\MinGW\bin to PATH using regedit" in HKEY_CURRENT_USER/Environment
2015-10-23 03:51:54 -07:00
#regedit
#exit
#wine mingw-get install gcc
#wine mingw-get install mingw-utils
#wine mingw-get install mingw32-libz
2015-10-23 03:51:54 -07:00
#create cfg file
#printf "[build]\ncompiler=mingw32\n" > /opt/wine64/drive_c/Python27/Lib/distutils/distutils.cfg
2015-10-23 03:51:54 -07:00
# Install Cython
$PYTHON -m pip install setuptools --upgrade
$PYTHON -m pip install cython
2017-10-16 19:04:15 -07:00
$PYTHON -m pip install hidapi==0.7.99.post20
2017-08-10 22:27:06 -07:00
$PYTHON -m pip install trezor==0.7.16
$PYTHON -m pip install keepkey
$PYTHON -m pip install btchip-python
2015-10-23 03:51:54 -07:00
#git clone https://github.com/trezor/cython-hidapi.git
#replace: from distutils.core import setup, Extenstion
#cd cython-hidapi
#git submodule init
#git submodule update
#$PYTHON setup.py install
#cd ..