Mercurial > hg > sonic-annotator
comparison deploy/clean-build-and-package.bat @ 391:a1c7e2863a62
Packaging fixes
author | Chris Cannam |
---|---|
date | Mon, 08 Jun 2020 17:12:42 +0100 |
parents | a2c5ca6b8785 |
children | 885960538dd4 |
comparison
equal
deleted
inserted
replaced
390:e09fa9a3686f | 391:a1c7e2863a62 |
---|---|
15 @echo Proceeding | 15 @echo Proceeding |
16 | 16 |
17 call .\deploy\win\build-both.bat | 17 call .\deploy\win\build-both.bat |
18 if %errorlevel% neq 0 exit /b %errorlevel% | 18 if %errorlevel% neq 0 exit /b %errorlevel% |
19 | 19 |
20 @echo on | |
21 | |
20 set NAME=Open Source Developer, Christopher Cannam | 22 set NAME=Open Source Developer, Christopher Cannam |
21 | 23 |
22 @echo Signing 32-bit executables and libraries | 24 @echo Signing 32-bit executables and libraries |
23 signtool sign /v /n "%NAME%" /t http://time.certum.pl /fd sha1 /a build_win32\release\*.exe build_win32\release\*.dll | 25 signtool sign /v /n "%NAME%" /t http://time.certum.pl /fd sha1 /a build_win32\release\*.exe build_win32\release\*.dll |
24 | 26 |
25 @echo Signing 64-bit executables and libraries | 27 @echo Signing 64-bit executables and libraries |
26 signtool sign /v /n "%NAME%" /t http://time.certum.pl /fd sha1 /a build_win64\release\*.exe build_win64\release\*.dll | 28 signtool sign /v /n "%NAME%" /t http://time.certum.pl /fd sha1 /a build_win64\release\*.exe build_win64\release\*.dll |
27 | 29 |
28 @echo Zipping up 32-bit package | 30 @echo Zipping up 32-bit package |
29 set pkg=sonic-annotator-v%VERSION%-win32 | 31 set pkg=sonic-annotator-%VERSION%-win32 |
30 set dir=%pkg%\%pkg% | 32 set dir=%pkg%\%pkg% |
31 mkdir %pkg% | 33 mkdir %pkg% |
32 mkdir %dir% | 34 mkdir %dir% |
33 copy CHANGELOG %dir%\CHANGELOG.txt | 35 copy CHANGELOG %dir%\CHANGELOG.txt |
34 copy CITATION %dir%\CITATION.txt | 36 copy CITATION %dir%\CITATION.txt |
35 copy COPYING %dir%\COPYING.txt | 37 copy COPYING %dir%\COPYING.txt |
36 copy README.md %dir%\README.txt | 38 copy README.md %dir%\README.txt |
37 copy build_win32\release\Qt5Core.dll %dir%\ | 39 copy build_win32\release\Qt5Core.dll %dir% |
38 copy build_win32\release\Qt5Network.dll %dir%\ | 40 copy build_win32\release\Qt5Network.dll %dir% |
39 copy build_win32\release\Qt5Xml.dll %dir%\ | 41 copy build_win32\release\Qt5Xml.dll %dir% |
40 copy build_win32\release\libgcc_s_dw2-1.dll %dir%\ | 42 copy build_win32\release\libgcc_s_dw2-1.dll %dir% |
41 copy build_win32\release\libstdc++-6.dll %dir%\ | 43 copy build_win32\release\libstdc++-6.dll %dir% |
42 copy build_win32\release\libwinpthread-1.dll %dir%\ | 44 copy build_win32\release\libwinpthread-1.dll %dir% |
43 copy build_win32\release\sonic-annotator.exe %dir%\ | 45 copy build_win32\release\sonic-annotator.exe %dir% |
46 | |
44 powershell -NoProfile -ExecutionPolicy Bypass -Command "& 'deploy\win\zip.ps1' %pkg%.zip %pkg%" | 47 powershell -NoProfile -ExecutionPolicy Bypass -Command "& 'deploy\win\zip.ps1' %pkg%.zip %pkg%" |
45 del /q /s %pkg% | 48 del /q /s %pkg% |
46 | 49 |
47 @echo Zipping up 64-bit package | 50 @echo Zipping up 64-bit package |
48 set pkg=sonic-annotator-v%VERSION%-win64 | 51 set pkg=sonic-annotator-%VERSION%-win64 |
49 set dir=%pkg%\%pkg% | 52 set dir=%pkg%\%pkg% |
50 mkdir %pkg% | 53 mkdir %pkg% |
51 mkdir %dir% | 54 mkdir %dir% |
52 copy CHANGELOG %dir%\CHANGELOG.txt | 55 copy CHANGELOG %dir%\CHANGELOG.txt |
53 copy CITATION %dir%\CITATION.txt | 56 copy CITATION %dir%\CITATION.txt |
54 copy COPYING %dir%\COPYING.txt | 57 copy COPYING %dir%\COPYING.txt |
55 copy README.md %dir%\README.txt | 58 copy README.md %dir%\README.txt |
56 copy build_win64\release\Qt5Core.dll %dir%\ | 59 copy build_win64\release\Qt5Core.dll %dir% |
57 copy build_win64\release\Qt5Network.dll %dir%\ | 60 copy build_win64\release\Qt5Network.dll %dir% |
58 copy build_win64\release\Qt5Xml.dll %dir%\ | 61 copy build_win64\release\Qt5Xml.dll %dir% |
59 copy build_win64\release\libsndfile-1.dll %dir%\ | 62 copy build_win64\release\libsndfile-1.dll %dir% |
60 copy build_win64\release\sonic-annotator.exe %dir%\ | 63 copy build_win64\release\sonic-annotator.exe %dir% |
64 | |
65 copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.25.28508\x64\Microsoft.VC142.CRT\concrt140.DLL" %dir% | |
66 copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.25.28508\x64\Microsoft.VC142.CRT\msvcp140.DLL" %dir% | |
67 copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.25.28508\x64\Microsoft.VC142.CRT\vccorlib140.DLL" %dir% | |
68 copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.25.28508\x64\Microsoft.VC142.CRT\vcruntime140.DLL" %dir% | |
69 copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.25.28508\x64\Microsoft.VC142.CRT\vcruntime140_1.DLL" %dir% | |
70 | |
61 powershell -NoProfile -ExecutionPolicy Bypass -Command "& 'deploy\win\zip.ps1' %pkg%.zip %pkg%" | 71 powershell -NoProfile -ExecutionPolicy Bypass -Command "& 'deploy\win\zip.ps1' %pkg%.zip %pkg%" |
62 del /q /s %pkg% | 72 del /q /s %pkg% |
63 | 73 |
64 @echo Done | 74 @echo Done |