forked from Tribler/tribler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xie8transmakedist.bat
97 lines (72 loc) · 4.06 KB
/
xie8transmakedist.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
REM @echo off
set LIBRARYNAME=Tribler
set PYTHONHOME=c:\Python265
REM Arno: Add . to find our core (py 2.5)
set PYTHONPATH=.;%PYTHONHOME%
echo PYTHONPATH SET TO %PYTHONPATH%
set NSIS="\Program Files\NSIS\makensis.exe"
REM ----- Check for Python and essential site-packages
IF NOT EXIST %PYTHONHOME%\python.exe (
echo .
echo Could not locate Python in %PYTHONHOME%.
echo Please modify this script or install python [www.python.org]
exit /b
)
IF NOT EXIST %PYTHONHOME%\Lib\site-packages\wx-*-unicode (
echo .
echo Could not locate wxPython in %PYTHONHOME%\Lib\site-packages.
echo Please modify this script or install wxPython [www.wxpython.org]
exit /b
)
IF NOT EXIST %PYTHONHOME%\Lib\site-packages\py2exe (
echo .
echo Could not locate py2exe in %PYTHONHOME%\Lib\site-packages.
echo Please modify this script or install wxPython [www.py2exe.org]
exit /b
)
REM ----- Check for NSIS installer
IF NOT EXIST %NSIS% (
echo .
echo Could not locate the NSIS installer at %NSIS%.
echo Please modify this script or install NSIS [nsis.sf.net]
exit /b
)
REM ----- Clean up
call clean.bat
REM ----- Build
REM Arno: When adding files here, make sure tribler.nsi actually
REM packs them in the installer .EXE
REM Diego: building the deepest dir we get all of them.
mkdir dist\installdir\bgprocess\%LIBRARYNAME%\Images
%PYTHONHOME%\python.exe -O %LIBRARYNAME%\Transport\Build\Win32\setupBGexe.py py2exe
REM Arno: Move py2exe results to installdir
move dist\*.* dist\installdir\bgprocess
copy %LIBRARYNAME%\Images\SwarmPlayerIcon.ico dist\installdir\bgprocess\%LIBRARYNAME%\Images
xcopy vlc4ie8player\* dist\installdir /E /I
REM Diego: replace vlc *.txt with P2P-Next License.txt
del dist\installdir\*.txt
type %LIBRARYNAME%\ns-LICENSE.txt %LIBRARYNAME%\binary-LICENSE-postfix.txt > %LIBRARYNAME%\binary-LICENSE.txt
copy %LIBRARYNAME%\binary-LICENSE.txt dist\installdir
REM Diego: sign axvlc.dll
"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"
copy %LIBRARYNAME%\Transport\Build\Win32\IE8\heading.bmp dist\installdir
REM TODO Diego: manifest?
copy %LIBRARYNAME%\Transport\Build\Win32\IE8\swarmplayer_IE_only.nsi dist\installdir
REM copy %LIBRARYNAME%\Transport\Build\Win32\IE8\swarmplayer.exe.manifest dist\installdir
copy %PYTHONHOME%\Lib\site-packages\wx-2.8-msw-unicode\wx\msvcp71.dll dist\installdir\bgprocess
copy reset*.bat dist\installdir
cd dist\installdir
REM Arno: Win7 gives popup if SwarmEngine is not signed
"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
:makeinstaller
%NSIS% swarmplayer_IE_only.nsi
rename SwarmPlayer_*.exe SwarmPlayer_IE_*.exe
move SwarmPlayer_IE*.exe ..
cd ..
REM Diego : sign SwarmPlayer_*.exe
"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"
REM Arno: build .cab file.
"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
REM Arno : sign SwarmPlayer*.cab
"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"
cd ..