comparison deploy/win32/build-and-package.bat @ 686:c80a1dac9fda

Copy in various further dependencies
author Chris Cannam
date Sun, 09 Dec 2018 15:22:36 +0000
parents 9e31ab5d9394
children 1add6167eb3c
comparison
equal deleted inserted replaced
685:9e31ab5d9394 686:c80a1dac9fda
1 rem Run this from within the top-level project dir: deploy\win32\build.bat 1 rem Run this from within the top-level project dir: deploy\win32\build.bat
2
3 rem NB PyQt5 build command, in PyQt5_gpl-5.11.3 directory: c:\Python27\python.exe configure.py --qmake=c:\qt\5.12.0\msvc2017\bin\qmake.exe --sip=c:\Python27\sip.exe --disable=QtNfc
2 4
3 set STARTPWD=%CD% 5 set STARTPWD=%CD%
4 6
5 if not exist "C:\Program Files (x86)\WiX Toolset v3.11\bin" ( 7 if not exist "C:\Program Files (x86)\WiX Toolset v3.11\bin" (
6 @ echo Could not find WiX Toolset 8 @ echo Could not find WiX Toolset
7 @ exit /b 2 9 @ exit /b 2
8 ) 10 )
9 11
10 if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.15.26706\x64\Microsoft.VC141.CRT" ( 12 if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.15.26706\x64\Microsoft.VC141.CRT" (
11 @ echo Could not find Windows CRT directory %CRTDIR% 13 @ echo Could not find Windows CRT directory
14 @ exit /b 2
15 )
16
17 if not exist "C:/Python27/Lib/site-packages/PyQt5/" (
18 @ echo Could not find PyQt5 directory
19 @ exit /b 2
20 )
21
22 if not exist "C:/Python27/Lib/site-packages/Crypto/" (
23 @ echo Could not find PyCrypto directory
12 @ exit /b 2 24 @ exit /b 2
13 ) 25 )
14 26
15 set ORIGINALPATH=%PATH% 27 set ORIGINALPATH=%PATH%
16 set PATH=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin;%PATH% 28 set PATH=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin;%PATH%
17 set CRTDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.15.26706\x64\Microsoft.VC141.CRT 29 set CRTDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.15.26706\x64\Microsoft.VC141.CRT
30 set PYQTDIR=C:/Python27/Lib/site-packages/PyQt5/
31 set PYCRYPTODIR=C:/Python27/Lib/site-packages/Crypto/
18 set NAME=Open Source Developer, Christopher Cannam 32 set NAME=Open Source Developer, Christopher Cannam
19 33
20 set ARG=%1 34 set ARG=%1
21 shift 35 shift
22 if "%ARG%" == "sign" ( 36 if "%ARG%" == "sign" (
42 56
43 set HGDIR=%STARTPWD%\mercurial-4.8.0-x86 57 set HGDIR=%STARTPWD%\mercurial-4.8.0-x86
44 58
45 cd build_win32\release 59 cd build_win32\release
46 60
61 copy "%STARTPWD%\easyhg.py" .
62
47 copy "%CRTDIR%\concrt140.DLL" . 63 copy "%CRTDIR%\concrt140.DLL" .
48 copy "%CRTDIR%\msvcp140.DLL" . 64 copy "%CRTDIR%\msvcp140.DLL" .
49 copy "%CRTDIR%\vccorlib140.DLL" . 65 copy "%CRTDIR%\vccorlib140.DLL" .
50 copy "%CRTDIR%\vcruntime140.DLL" . 66 copy "%CRTDIR%\vcruntime140.DLL" .
51 67
52 copy "%HGDIR%\PFiles\Mercurial\hg.exe" . 68 copy "%HGDIR%\PFiles\Mercurial\hg.exe" .
53 copy "%HGDIR%\PFiles\Mercurial\python27.dll" . 69 copy "%HGDIR%\PFiles\Mercurial\python27.dll" .
54 70
55 mkdir lib 71 mkdir lib
56 copy "%HGDIR%\PFiles\Mercurial\lib\*" .\lib\ 72 copy "%HGDIR%\PFiles\Mercurial\lib\*" lib\
57 73
58 copy "%HGDIR%\windows\system32\msvcm90.dll" . 74 copy "%HGDIR%\windows\system32\msvcm90.dll" .
59 copy "%HGDIR%\windows\system32\msvcp90.dll" . 75 copy "%HGDIR%\windows\system32\msvcp90.dll" .
60 copy "%HGDIR%\windows\system32\msvcr90.dll" . 76 copy "%HGDIR%\windows\system32\msvcr90.dll" .
77
78 mkdir PyQt5
79 copy "%PYQTDIR%\..\sip.pyd" .
80 copy "%PYQTDIR%\__init__.py" PyQt5\
81 copy "%PYQTDIR%\QtCore.pyd" PyQt5\
82 copy "%PYQTDIR%\QtGui.pyd" PyQt5\
83 copy "%PYQTDIR%\QtWidgets.pyd" PyQt5\
84
85 mkdir Crypto
86 mkdir Crypto\Cipher
87 mkdir Crypto\Util
88
89 copy "%PYCRYPTODIR%\Cipher\__init__.py" Crypto\Cipher\
90 copy "%PYCRYPTODIR%\Cipher\_AES.pyd" Crypto\Cipher\
91 copy "%PYCRYPTODIR%\Cipher\AES.py" Crypto\Cipher\
92 copy "%PYCRYPTODIR%\Cipher\blockalgo.py" Crypto\Cipher\
93
94 copy "%PYCRYPTODIR%\Util\__init__.py" Crypto\Util\
95 copy "%PYCRYPTODIR%\Util\py3compat.py" Crypto\Util\
96
97 copy "%PYCRYPTODIR%\__init__.py" Crypto\
61 98
62 if "%ARG%" == "sign" ( 99 if "%ARG%" == "sign" (
63 @echo Signing components 100 @echo Signing components
64 signtool sign /v /n "%NAME%" /t http://time.certum.pl /fd sha1 *.dll *.exe lib\* 101 signtool sign /v /n "%NAME%" /t http://time.certum.pl /fd sha1 *.dll *.exe lib\*
65 signtool verify /pa sonic-visualiser.msi 102 signtool verify /pa sonic-visualiser.msi