instrumentation: add next-share/
[cs-p2p-next.git] / instrumentation / next-share / xie8transmakedist.bat
1 REM @echo off\r
2 set LIBRARYNAME=Tribler\r
3 \r
4 set PYTHONHOME=c:\Python265\r
5 REM Arno: Add . to find our core (py 2.5)\r
6 set PYTHONPATH=.;%PYTHONHOME%\r
7 echo PYTHONPATH SET TO %PYTHONPATH%\r
8 \r
9 set NSIS="\Program Files\NSIS\makensis.exe"\r
10 \r
11 REM ----- Check for Python and essential site-packages\r
12 \r
13 IF NOT EXIST %PYTHONHOME%\python.exe (\r
14   echo .\r
15   echo Could not locate Python in %PYTHONHOME%.\r
16   echo Please modify this script or install python [www.python.org]\r
17   exit /b\r
18 )\r
19 \r
20 IF NOT EXIST %PYTHONHOME%\Lib\site-packages\wx-*-unicode (\r
21   echo .\r
22   echo Could not locate wxPython in %PYTHONHOME%\Lib\site-packages.\r
23   echo Please modify this script or install wxPython [www.wxpython.org]\r
24   exit /b\r
25 )\r
26 \r
27 IF NOT EXIST %PYTHONHOME%\Lib\site-packages\py2exe (\r
28   echo .\r
29   echo Could not locate py2exe in %PYTHONHOME%\Lib\site-packages.\r
30   echo Please modify this script or install wxPython [www.py2exe.org]\r
31   exit /b\r
32 )\r
33 \r
34 REM ----- Check for NSIS installer\r
35 \r
36 IF NOT EXIST %NSIS% (\r
37   echo .\r
38   echo Could not locate the NSIS installer at %NSIS%.\r
39   echo Please modify this script or install NSIS [nsis.sf.net]\r
40   exit /b\r
41 )\r
42 \r
43 REM ----- Clean up\r
44 \r
45 call clean.bat\r
46 \r
47 REM ----- Build\r
48 \r
49 REM Arno: When adding files here, make sure tribler.nsi actually\r
50 REM packs them in the installer .EXE\r
51 \r
52 REM Diego: building the deepest dir we get all of them.\r
53 mkdir dist\installdir\bgprocess\%LIBRARYNAME%\Images\r
54 \r
55 %PYTHONHOME%\python.exe -O %LIBRARYNAME%\Transport\Build\Win32\setupBGexe.py py2exe\r
56 \r
57 REM Arno: Move py2exe results to installdir\r
58 move dist\*.* dist\installdir\bgprocess\r
59 copy %LIBRARYNAME%\Images\SwarmPlayerIcon.ico dist\installdir\bgprocess\%LIBRARYNAME%\Images\r
60 xcopy vlc4ie8player\* dist\installdir /E /I\r
61 REM Diego: replace vlc *.txt with P2P-Next License.txt\r
62 del dist\installdir\*.txt\r
63 type %LIBRARYNAME%\ns-LICENSE.txt %LIBRARYNAME%\binary-LICENSE-postfix.txt > %LIBRARYNAME%\binary-LICENSE.txt\r
64 copy %LIBRARYNAME%\binary-LICENSE.txt dist\installdir\r
65 \r
66 REM Diego: sign axvlc.dll\r
67 "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin\signtool.exe" sign /f c:\build\certs\swarmplayerprivatekey.pfx /p "" /d "SwarmPlayer for Internet Explorer" /du "http://www.pds.ewi.tudelft.nl/code.html" /t "http://timestamp.verisign.com/scripts/timestamp.dll" "dist\installdir\activex\axvlc.dll"\r
68 \r
69 copy %LIBRARYNAME%\Transport\Build\Win32\IE8\heading.bmp dist\installdir\r
70 REM TODO Diego: manifest?\r
71 copy %LIBRARYNAME%\Transport\Build\Win32\IE8\swarmplayer_IE_only.nsi dist\installdir\r
72 REM copy %LIBRARYNAME%\Transport\Build\Win32\IE8\swarmplayer.exe.manifest dist\installdir\r
73 \r
74 copy %PYTHONHOME%\Lib\site-packages\wx-2.8-msw-unicode\wx\msvcp71.dll dist\installdir\bgprocess\r
75 \r
76 copy reset*.bat dist\installdir\r
77 \r
78 cd dist\installdir\r
79 \r
80 REM Arno: Win7 gives popup if SwarmEngine is not signed\r
81 "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin\signtool.exe" sign /f c:\build\certs\swarmplayerprivatekey.pfx /p "" /d "SwarmPlayer for Internet Explorer and Firefox" /du "http://www.pds.ewi.tudelft.nl/code.html" /t "http://timestamp.verisign.com/scripts/timestamp.dll" bgprocess\SwarmEngine.exe\r
82 \r
83 \r
84 :makeinstaller\r
85 %NSIS% swarmplayer_IE_only.nsi\r
86 \r
87 rename SwarmPlayer_*.exe SwarmPlayer_IE_*.exe\r
88 move SwarmPlayer_IE*.exe ..\r
89 cd ..\r
90 REM Diego : sign SwarmPlayer_*.exe\r
91 "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin\signtool.exe" sign /f c:\build\certs\swarmplayerprivatekey.pfx /p "" /d "SwarmPlayer for Internet Explorer" /du "http://www.pds.ewi.tudelft.nl/code.html" /t "http://timestamp.verisign.com/scripts/timestamp.dll" "SwarmPlayer_IE*.exe"\r
92 REM Arno: build .cab file. \r
93 "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin\CabArc.Exe" -s 6144 n SwarmPlayer_IE.cab ..\%LIBRARYNAME%\Transport\Win32\IE8\SwarmPlayer_IE.inf\r
94 REM Arno : sign SwarmPlayer*.cab\r
95 "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin\signtool.exe" sign /f c:\build\certs\swarmplayerprivatekey.pfx /p "" /d "SwarmPlayer for Internet Explorer" /du "http://www.pds.ewi.tudelft.nl/code.html" /t "http://timestamp.verisign.com/scripts/timestamp.dll" "SwarmPlayer_IE*.cab"\r
96 \r
97 cd ..\r