3 # Please update these links carefully, some versions won't work under Wine
4 PYTHON_URL=http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi
5 PYQT4_URL=http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.9.5/PyQt-Py2.6-x86-gpl-4.9.5-1.exe
6 PYWIN32_URL=http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/pywin32-218.win32-py2.6.exe/download
7 PYINSTALLER_URL=https://github.com/downloads/pyinstaller/pyinstaller/pyinstaller-2.0.zip
8 NSIS_URL=http://prdownloads.sourceforge.net/nsis/nsis-2.46-setup.exe?download
9 #ZBAR_URL=http://sourceforge.net/projects/zbar/files/zbar/0.10/zbar-0.10-setup.exe/download
11 # These settings probably don't need change
12 export WINEPREFIX=~/.wine-electrum
14 PYTHON="wine $PYHOME/python.exe -OO -B"
20 # Clean up Wine environment
21 echo "Cleaning $WINEPREFIX"
33 wget -O python.msi "$PYTHON_URL"
34 msiexec /q /i python.msi
37 wget -O pywin32.exe "$PYWIN32_URL"
41 wget -O PyQt.exe "$PYQT4_URL"
44 #cp -r /electrum-wine/pyinstaller $WINEPREFIX/drive_c/
46 wget -O pyinstaller.zip "$PYINSTALLER_URL"
48 mv pyinstaller-2.0 $WINEPREFIX/drive_c/pyinstaller
50 # Patch pyinstaller's DummyZlib
51 patch $WINEPREFIX/drive_c/pyinstaller/PyInstaller/loader/archive.py < ../archive.patch
54 #wget -q -O zbar.exe "http://sourceforge.net/projects/zbar/files/zbar/0.10/zbar-0.10-setup.exe/download"
57 # Install dependencies
58 wget -q -O - "http://python-distribute.org/distribute_setup.py" | $PYTHON
59 wine "$PYHOME\\Scripts\\easy_install.exe" ecdsa slowaes #zbar
61 # Install NSIS installer
62 wget -q -O nsis.exe "http://prdownloads.sourceforge.net/nsis/nsis-2.46-setup.exe?download"
66 #wget -O upx.zip "http://upx.sourceforge.net/download/upx308w.zip"