From: Ramakrishnan Muthukrishnan Date: Fri, 14 Nov 2014 13:13:32 +0000 (+0530) Subject: A beginning of a batch file for building on Windows 7 64-bit. X-Git-Url: https://git.rkrishnan.org/components/architecture.txt?a=commitdiff_plain;h=112d5487a3eeab59a5f6eb91ee9d3282c44b5687;p=tahoe-lafs%2Ftahoe-lafs.git A beginning of a batch file for building on Windows 7 64-bit. --- diff --git a/build-win7-x86-64.bat b/build-win7-x86-64.bat new file mode 100644 index 00000000..ff4eaf40 --- /dev/null +++ b/build-win7-x86-64.bat @@ -0,0 +1,67 @@ +REM directory to store the build dependencies +REM mkdir dependencies + +REM install VC Studio Express 2008 +REM "http://go.microsoft.com/?linkid=7729279" + +REM Install Windows SDK +REM http://www.microsoft.com/en-us/download/confirmation.aspx?id=3138 + +REM silently installing VC Studio 2008: +REM http://blogs.msdn.com/b/astebner/archive/2007/09/12/4887301.aspx +REM http://blogs.msdn.com/b/astebner/archive/2008/03/24/8334544.aspx + +REM Download and install Python (2.7.8) x86-64 MSI. +REM set PATH=%PATH%;c:\Program files (x86)\GnuWin32\bin +REM wget https://www.python.org/ftp/python/2.7.8/python-2.7.8.msi -O dependencies/python-2.7.8.msi + +REM start /wait dependencies/python-2.7.8.msi /passive + +REM Download and install PyOpenSSL +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 + +REM start /wait dependencies/pyOpenSSL-0.13.1.win-amd64-py2.7.exe + +REM open visual studio 2008 cmd prompt as Administrator (right click) +REM Run the "Windows SDK Configuration Tool", select v7.0 and click "Make Current". + +call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat" + +set MSSdk=1 +set DISTUTILS_USE_SDK=1 + +regedit /s x64\VC_OBJECTS_PLATFORM_INFO.reg +regedit /s x64\600dd186-2429-11d7-8bf6-00b0d03daa06.reg +regedit /s x64\600dd187-2429-11d7-8bf6-00b0d03daa06.reg +regedit /s x64\600dd188-2429-11d7-8bf6-00b0d03daa06.reg +regedit /s x64\600dd189-2429-11d7-8bf6-00b0d03daa06.reg +regedit /s x64\656d875f-2429-11d7-8bf6-00b0d03daa06.reg +regedit /s x64\656d8760-2429-11d7-8bf6-00b0d03daa06.reg +regedit /s x64\656d8763-2429-11d7-8bf6-00b0d03daa06.reg +regedit /s x64\656d8766-2429-11d7-8bf6-00b0d03daa06.reg +copy "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcpackages\AMD64.VCPlatform.config" "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcpackages\AMD64.VCPlatform.Express.config" +copy "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcpackages\Itanium.VCPlatform.config" "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcpackages\Itanium.VCPlatform.Express.config" + +REM Install OpenSSL +set PATH=%PATH%;c:\OpenSSL-win64\bin + +REM build tahoe-lafs +c:\python27\python.exe setup.py build + +REM zip the tahoe directory and Python MSI installer +REM first copy everything into a temp directory +mkdir ..\tahoe-lafs.x86-64 +xcopy /S . ..\tahoe-lafs.x86-64 + +copy python-2.7.8.amd64.msi ..\tahoe-lafs.x86-64 +zip ..\tahoe-lafs.zip ..\tahoe-lafs.x86-64 + +REM build the installer +REM TODO: msbuild does not seem to recognize the sln file format. + +REM create final self-extracting installer exe by concatenating the installer with the +REM tahoe-lafs.zip file. +copy misc\build_helpers\windows\installer\Debug\installer.exe . +copy /b installer.exe+..\tahoe-lafs.zip ..\install-tahoe-LAFS-x86-64.exe +del installer.exe +rmdir \s ..\tahoe-lafs.x86-64