1 REM directory to store the build dependencies
4 REM install VC Studio Express 2008
5 REM "http://go.microsoft.com/?linkid=7729279"
7 REM Install Windows SDK
8 REM http://www.microsoft.com/en-us/download/confirmation.aspx?id=3138
10 REM silently installing VC Studio 2008:
11 REM http://blogs.msdn.com/b/astebner/archive/2007/09/12/4887301.aspx
12 REM http://blogs.msdn.com/b/astebner/archive/2008/03/24/8334544.aspx
14 REM Download and install Python (2.7.8) x86-64 MSI.
15 REM set PATH=%PATH%;c:\Program files (x86)\GnuWin32\bin
16 REM wget https://www.python.org/ftp/python/2.7.8/python-2.7.8.msi -O dependencies/python-2.7.8.msi
18 REM start /wait dependencies/python-2.7.8.msi /passive
20 REM Download and install PyOpenSSL
21 REM wget https://pypi.python.org/packages/2.7/p/pyOpenSSL/pyOpenSSL-0.13.1.win-amd64-py2.7.exe#md5=223cc4ab7439818ccaf1bf7f51736dc8 -O dependencies/pyOpenSSL-0.13.1.win-amd64-py2.7.exe
23 REM start /wait dependencies/pyOpenSSL-0.13.1.win-amd64-py2.7.exe
25 REM open visual studio 2008 cmd prompt as Administrator (right click)
26 REM Run the "Windows SDK Configuration Tool", select v7.0 and click "Make Current".
28 set PYTHON=C:\Python27\python.exe
29 set VC_INSTALL_DIR=%VS90COMNTOOLS%..\..
31 call "%VC_INSTALL_DIR%\VC\bin\vcvars64.bat"
34 set DISTUTILS_USE_SDK=1
36 regedit /s x64\VC_OBJECTS_PLATFORM_INFO.reg
37 regedit /s x64\600dd186-2429-11d7-8bf6-00b0d03daa06.reg
38 regedit /s x64\600dd187-2429-11d7-8bf6-00b0d03daa06.reg
39 regedit /s x64\600dd188-2429-11d7-8bf6-00b0d03daa06.reg
40 regedit /s x64\600dd189-2429-11d7-8bf6-00b0d03daa06.reg
41 regedit /s x64\656d875f-2429-11d7-8bf6-00b0d03daa06.reg
42 regedit /s x64\656d8760-2429-11d7-8bf6-00b0d03daa06.reg
43 regedit /s x64\656d8763-2429-11d7-8bf6-00b0d03daa06.reg
44 regedit /s x64\656d8766-2429-11d7-8bf6-00b0d03daa06.reg
45 copy "%VC_INSTALL_DIR%\VC\vcpackages\AMD64.VCPlatform.config" "%VC_INSTALL_DIR%\VC\vcpackages\AMD64.VCPlatform.Express.config"
46 copy "%VC_INSTALL_DIR%\VC\vcpackages\Itanium.VCPlatform.config" "%VC_INSTALL_DIR%\VC\vcpackages\Itanium.VCPlatform.Express.config"
49 %PYTHON% setup.py build
51 REM zip the tahoe directory and Python MSI installer
52 REM first copy everything into a temp directory
53 rd /q /s ..\tahoe-lafs.x86-64
54 mkdir ..\tahoe-lafs.x86-64
55 xcopy /S . ..\tahoe-lafs.x86-64
57 copy python-2.7.8.amd64.msi ..\tahoe-lafs.x86-64
58 zip ..\tahoe-lafs.zip ..\tahoe-lafs.x86-64
60 REM build the installer
61 REM TODO: msbuild does not seem to recognize the sln file format.
63 REM create final self-extracting installer exe by concatenating the installer with the
64 REM tahoe-lafs.zip file.
65 copy misc\build_helpers\windows\installer\Debug\installer.exe .
66 copy /b installer.exe+..\tahoe-lafs.zip ..\install-tahoe-LAFS-x86-64.exe
68 rd /q /s ..\tahoe-lafs.x86-64