2 set LIBRARYNAME=Tribler
\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
9 set NSIS="\Program Files\NSIS\makensis.exe"
\r
11 REM ----- Check for Python and essential site-packages
\r
13 IF NOT EXIST %PYTHONHOME%\python.exe (
\r
15 echo Could not locate Python in %PYTHONHOME%.
\r
16 echo Please modify this script or install python [www.python.org]
\r
20 IF NOT EXIST %PYTHONHOME%\Lib\site-packages\wx-*-unicode (
\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
27 IF NOT EXIST %PYTHONHOME%\Lib\site-packages\py2exe (
\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
34 REM ----- Check for NSIS installer
\r
36 IF NOT EXIST %NSIS% (
\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
49 REM Arno: When adding files here, make sure tribler.nsi actually
\r
50 REM packs them in the installer .EXE
\r
52 REM Diego: building the deepest dir we get all of them.
\r
53 mkdir dist\installdir\bgprocess\%LIBRARYNAME%\Images
\r
55 %PYTHONHOME%\python.exe -O %LIBRARYNAME%\Transport\Build\Win32\setupBGexe.py py2exe
\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
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
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
74 copy %PYTHONHOME%\Lib\site-packages\wx-2.8-msw-unicode\wx\msvcp71.dll dist\installdir\bgprocess
\r
76 copy reset*.bat dist\installdir
\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
85 %NSIS% swarmplayer_IE_only.nsi
\r
87 rename SwarmPlayer_*.exe SwarmPlayer_IE_*.exe
\r
88 move SwarmPlayer_IE*.exe ..
\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