ThomasV
9 years ago
7 changed files with 149 additions and 77 deletions
@ -1,50 +0,0 @@ |
|||
#!/bin/bash |
|||
|
|||
# You probably need to update only this link |
|||
ELECTRUM_URL=http://electrum.bitcoin.cz/download/Electrum-1.6.1.tar.gz |
|||
NAME_ROOT=electrum-1.6.1 |
|||
|
|||
# These settings probably don't need any change |
|||
export WINEPREFIX=/opt/wine-electrum |
|||
PYHOME=c:/python26 |
|||
PYTHON="wine $PYHOME/python.exe -OO -B" |
|||
|
|||
# Let's begin! |
|||
cd `dirname $0` |
|||
set -e |
|||
|
|||
cd tmp |
|||
|
|||
# Download and unpack Electrum |
|||
wget -O electrum.tgz "$ELECTRUM_URL" |
|||
tar xf electrum.tgz |
|||
mv Electrum-* electrum |
|||
rm -rf $WINEPREFIX/drive_c/electrum |
|||
cp electrum/LICENCE . |
|||
mv electrum $WINEPREFIX/drive_c |
|||
|
|||
# Copy ZBar libraries to electrum |
|||
#cp "$WINEPREFIX/drive_c/Program Files (x86)/ZBar/bin/"*.dll "$WINEPREFIX/drive_c/electrum/" |
|||
|
|||
cd .. |
|||
|
|||
rm -rf dist/$NAME_ROOT |
|||
rm -f dist/$NAME_ROOT.zip |
|||
rm -f dist/$NAME_ROOT.exe |
|||
rm -f dist/$NAME_ROOT-setup.exe |
|||
|
|||
# For building standalone compressed EXE, run: |
|||
$PYTHON "C:/pyinstaller/pyinstaller.py" --noconfirm --ascii -w --onefile "C:/electrum/electrum" |
|||
|
|||
# For building uncompressed directory of dependencies, run: |
|||
$PYTHON "C:/pyinstaller/pyinstaller.py" --noconfirm --ascii -w deterministic.spec |
|||
|
|||
# For building NSIS installer, run: |
|||
wine "$WINEPREFIX/drive_c/Program Files (x86)/NSIS/makensis.exe" electrum.nsi |
|||
#wine $WINEPREFIX/drive_c/Program\ Files\ \(x86\)/NSIS/makensis.exe electrum.nsis |
|||
|
|||
cd dist |
|||
mv electrum.exe $NAME_ROOT.exe |
|||
mv electrum $NAME_ROOT |
|||
mv electrum-setup.exe $NAME_ROOT-setup.exe |
|||
zip -r $NAME_ROOT.zip $NAME_ROOT |
@ -0,0 +1,13 @@ |
|||
diff --git a/electrum b/electrum
|
|||
index 8c972c6..46903b7 100755
|
|||
--- a/electrum
|
|||
+++ b/electrum
|
|||
@@ -454,6 +454,8 @@ if __name__ == '__main__':
|
|||
if config_options.get('server'): |
|||
config_options['auto_connect'] = False |
|||
|
|||
+ config_options['portable'] = True
|
|||
+
|
|||
if config_options.get('portable'): |
|||
config_options['electrum_path'] = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'electrum_data') |
|||
|
@ -0,0 +1,89 @@ |
|||
#!/bin/bash |
|||
|
|||
TREZOR_GIT_URL=git://github.com/trezor/python-trezor.git |
|||
KEEPKEY_GIT_URL=git://github.com/keepkey/python-keepkey.git |
|||
BTCHIP_GIT_URL=git://github.com/LedgerHQ/btchip-python.git |
|||
|
|||
BRANCH=master |
|||
|
|||
# These settings probably don't need any change |
|||
export WINEPREFIX=/opt/electrum/wine64 |
|||
|
|||
PYHOME=c:/python27 |
|||
PYTHON="wine $PYHOME/python.exe " |
|||
|
|||
# Let's begin! |
|||
cd `dirname $0` |
|||
set -e |
|||
|
|||
cd tmp |
|||
|
|||
# downoad mingw-get-setup.exe |
|||
#wget http://downloads.sourceforge.net/project/mingw/Installer/mingw-get-setup.exe |
|||
#wine mingw-get-setup.exe |
|||
|
|||
#echo "add c:\MinGW\bin to PATH using regedit" |
|||
#regedit |
|||
#exit |
|||
|
|||
#wine mingw-get install gcc |
|||
#wine mingw-get install mingw-utils |
|||
#wine mingw-get install mingw32-libz |
|||
|
|||
#create cfg file |
|||
#printf "[build]\ncompiler=mingw32\n" > /opt/me/wine64/drive_c/Python27/Lib/distutils/distutils.cfg |
|||
|
|||
# Install Cython |
|||
#wine "$PYHOME\\Scripts\\easy_install.exe" cython |
|||
|
|||
|
|||
# not working |
|||
##wine "$PYHOME\\Scripts\\easy_install.exe" hidapi |
|||
|
|||
#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 .. |
|||
|
|||
|
|||
|
|||
if [ -d "trezor-git" ]; then |
|||
cd trezor-git |
|||
git pull |
|||
cd .. |
|||
else |
|||
git clone -b $BRANCH $TREZOR_GIT_URL trezor-git |
|||
fi |
|||
cd trezor-git |
|||
$PYTHON setup.py install |
|||
cd .. |
|||
|
|||
#keepkey |
|||
if [ -d "keepkey-git" ]; then |
|||
cd keepkey-git |
|||
git pull |
|||
cd .. |
|||
else |
|||
git clone -b $BRANCH $KEEPKEY_GIT_URL keepkey-git |
|||
fi |
|||
cd keepkey-git |
|||
# fails $PYTHON setup.py install |
|||
cd .. |
|||
|
|||
#btchip |
|||
if [ -d "btchip-git" ]; then |
|||
cd btchip-git |
|||
git pull |
|||
cd .. |
|||
else |
|||
git clone -b $BRANCH $BTCHIP_GIT_URL btchip-git |
|||
fi |
|||
cd btchip-git |
|||
$PYTHON setup.py install |
|||
cd .. |
|||
|
Loading…
Reference in new issue