]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blob - build-win7-x86-64.bat
Merge pull request #155 from vu3rdd/2323.osx-error-msg.1
[tahoe-lafs/tahoe-lafs.git] / build-win7-x86-64.bat
1 REM directory to store the build dependencies
2 REM mkdir dependencies
3
4 REM install VC Studio Express 2008
5 REM "http://go.microsoft.com/?linkid=7729279"
6
7 REM Install Windows SDK
8 REM http://www.microsoft.com/en-us/download/confirmation.aspx?id=3138
9
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
13
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
17  
18 REM start /wait dependencies/python-2.7.8.msi /passive
19  
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
22
23 REM start /wait dependencies/pyOpenSSL-0.13.1.win-amd64-py2.7.exe
24
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".
27
28 set PYTHON=C:\Python27\python.exe
29 set VC_INSTALL_DIR=%VS90COMNTOOLS%..\..
30
31 call "%VC_INSTALL_DIR%\VC\bin\vcvars64.bat"
32
33 set MSSdk=1
34 set DISTUTILS_USE_SDK=1
35
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"
47
48 REM build tahoe-lafs
49 %PYTHON% setup.py build
50
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
56
57 copy python-2.7.8.amd64.msi ..\tahoe-lafs.x86-64
58 zip ..\tahoe-lafs.zip ..\tahoe-lafs.x86-64
59
60 REM build the installer
61 REM TODO: msbuild does not seem to recognize the sln file format.
62
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
67 del installer.exe
68 rd /q /s ..\tahoe-lafs.x86-64