changeset 686:c80a1dac9fda

Copy in various further dependencies
author Chris Cannam
date Sun, 09 Dec 2018 15:22:36 +0000
parents 9e31ab5d9394
children 1add6167eb3c
files deploy/win32/build-and-package.bat
diffstat 1 files changed, 39 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/deploy/win32/build-and-package.bat	Fri Dec 07 17:39:12 2018 +0000
+++ b/deploy/win32/build-and-package.bat	Sun Dec 09 15:22:36 2018 +0000
@@ -1,5 +1,7 @@
 rem  Run this from within the top-level project dir: deploy\win32\build.bat
 
+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
+
 set STARTPWD=%CD%
 
 if not exist "C:\Program Files (x86)\WiX Toolset v3.11\bin" (
@@ -8,13 +10,25 @@
 )
 
 if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.15.26706\x64\Microsoft.VC141.CRT" (
-@   echo Could not find Windows CRT directory %CRTDIR%
+@   echo Could not find Windows CRT directory
+@   exit /b 2
+)
+
+if not exist "C:/Python27/Lib/site-packages/PyQt5/" (
+@   echo Could not find PyQt5 directory
+@   exit /b 2
+)
+
+if not exist "C:/Python27/Lib/site-packages/Crypto/" (
+@   echo Could not find PyCrypto directory
 @   exit /b 2
 )
 
 set ORIGINALPATH=%PATH%
 set PATH=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin;%PATH%
 set CRTDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.15.26706\x64\Microsoft.VC141.CRT
+set PYQTDIR=C:/Python27/Lib/site-packages/PyQt5/
+set PYCRYPTODIR=C:/Python27/Lib/site-packages/Crypto/
 set NAME=Open Source Developer, Christopher Cannam
 
 set ARG=%1
@@ -44,6 +58,8 @@
 
 cd build_win32\release
 
+copy "%STARTPWD%\easyhg.py" .
+
 copy "%CRTDIR%\concrt140.DLL" .
 copy "%CRTDIR%\msvcp140.DLL" .
 copy "%CRTDIR%\vccorlib140.DLL" .
@@ -53,12 +69,33 @@
 copy "%HGDIR%\PFiles\Mercurial\python27.dll" .
 
 mkdir lib
-copy "%HGDIR%\PFiles\Mercurial\lib\*" .\lib\
+copy "%HGDIR%\PFiles\Mercurial\lib\*" lib\
 
 copy "%HGDIR%\windows\system32\msvcm90.dll" .
 copy "%HGDIR%\windows\system32\msvcp90.dll" .
 copy "%HGDIR%\windows\system32\msvcr90.dll" .
 
+mkdir PyQt5
+copy "%PYQTDIR%\..\sip.pyd" .
+copy "%PYQTDIR%\__init__.py" PyQt5\
+copy "%PYQTDIR%\QtCore.pyd" PyQt5\
+copy "%PYQTDIR%\QtGui.pyd" PyQt5\
+copy "%PYQTDIR%\QtWidgets.pyd" PyQt5\
+
+mkdir Crypto
+mkdir Crypto\Cipher
+mkdir Crypto\Util
+
+copy "%PYCRYPTODIR%\Cipher\__init__.py" Crypto\Cipher\
+copy "%PYCRYPTODIR%\Cipher\_AES.pyd" Crypto\Cipher\
+copy "%PYCRYPTODIR%\Cipher\AES.py" Crypto\Cipher\
+copy "%PYCRYPTODIR%\Cipher\blockalgo.py" Crypto\Cipher\
+
+copy "%PYCRYPTODIR%\Util\__init__.py" Crypto\Util\
+copy "%PYCRYPTODIR%\Util\py3compat.py" Crypto\Util\
+
+copy "%PYCRYPTODIR%\__init__.py" Crypto\
+
 if "%ARG%" == "sign" (
 @echo Signing components
 signtool sign /v /n "%NAME%" /t http://time.certum.pl /fd sha1 *.dll *.exe lib\*