annotate deploy/clean-build-and-package.bat @ 392:f33924771c5f

Print transforms in order of id (default is order of name first, which isn't displayed here, so it's confusing)
author Chris Cannam
date Tue, 09 Jun 2020 14:55:08 +0100
parents a1c7e2863a62
children 885960538dd4
rev   line source
Chris@385 1 @rem Run this from within the top-level dir: deploy\clean-build-and-package
Chris@385 2 @echo on
Chris@385 3
Chris@385 4 @set /p VERSION=<version.h
Chris@385 5 @set VERSION=%VERSION:#define RUNNER_VERSION "=%
Chris@385 6 set VERSION=%VERSION:"=%
Chris@385 7
Chris@385 8 @echo(
Chris@385 9 @set YN=y
Chris@385 10 @set /p YN="Proceed to clean, rebuild, package, and sign version %VERSION% [Yn] ?"
Chris@385 11
Chris@385 12 @if "%YN%" == "Y" set YN=y
Chris@385 13 @if "%YN%" neq "y" exit /b 3
Chris@385 14
Chris@385 15 @echo Proceeding
Chris@385 16
Chris@386 17 call .\deploy\win\build-both.bat
Chris@385 18 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@385 19
Chris@391 20 @echo on
Chris@391 21
Chris@385 22 set NAME=Open Source Developer, Christopher Cannam
Chris@385 23
Chris@385 24 @echo Signing 32-bit executables and libraries
Chris@385 25 signtool sign /v /n "%NAME%" /t http://time.certum.pl /fd sha1 /a build_win32\release\*.exe build_win32\release\*.dll
Chris@385 26
Chris@385 27 @echo Signing 64-bit executables and libraries
Chris@385 28 signtool sign /v /n "%NAME%" /t http://time.certum.pl /fd sha1 /a build_win64\release\*.exe build_win64\release\*.dll
Chris@385 29
Chris@385 30 @echo Zipping up 32-bit package
Chris@391 31 set pkg=sonic-annotator-%VERSION%-win32
Chris@385 32 set dir=%pkg%\%pkg%
Chris@385 33 mkdir %pkg%
Chris@385 34 mkdir %dir%
Chris@385 35 copy CHANGELOG %dir%\CHANGELOG.txt
Chris@385 36 copy CITATION %dir%\CITATION.txt
Chris@385 37 copy COPYING %dir%\COPYING.txt
Chris@385 38 copy README.md %dir%\README.txt
Chris@391 39 copy build_win32\release\Qt5Core.dll %dir%
Chris@391 40 copy build_win32\release\Qt5Network.dll %dir%
Chris@391 41 copy build_win32\release\Qt5Xml.dll %dir%
Chris@391 42 copy build_win32\release\libgcc_s_dw2-1.dll %dir%
Chris@391 43 copy build_win32\release\libstdc++-6.dll %dir%
Chris@391 44 copy build_win32\release\libwinpthread-1.dll %dir%
Chris@391 45 copy build_win32\release\sonic-annotator.exe %dir%
Chris@391 46
Chris@387 47 powershell -NoProfile -ExecutionPolicy Bypass -Command "& 'deploy\win\zip.ps1' %pkg%.zip %pkg%"
Chris@387 48 del /q /s %pkg%
Chris@385 49
Chris@385 50 @echo Zipping up 64-bit package
Chris@391 51 set pkg=sonic-annotator-%VERSION%-win64
Chris@385 52 set dir=%pkg%\%pkg%
Chris@385 53 mkdir %pkg%
Chris@385 54 mkdir %dir%
Chris@385 55 copy CHANGELOG %dir%\CHANGELOG.txt
Chris@385 56 copy CITATION %dir%\CITATION.txt
Chris@385 57 copy COPYING %dir%\COPYING.txt
Chris@385 58 copy README.md %dir%\README.txt
Chris@391 59 copy build_win64\release\Qt5Core.dll %dir%
Chris@391 60 copy build_win64\release\Qt5Network.dll %dir%
Chris@391 61 copy build_win64\release\Qt5Xml.dll %dir%
Chris@391 62 copy build_win64\release\libsndfile-1.dll %dir%
Chris@391 63 copy build_win64\release\sonic-annotator.exe %dir%
Chris@391 64
Chris@391 65 copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.25.28508\x64\Microsoft.VC142.CRT\concrt140.DLL" %dir%
Chris@391 66 copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.25.28508\x64\Microsoft.VC142.CRT\msvcp140.DLL" %dir%
Chris@391 67 copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.25.28508\x64\Microsoft.VC142.CRT\vccorlib140.DLL" %dir%
Chris@391 68 copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.25.28508\x64\Microsoft.VC142.CRT\vcruntime140.DLL" %dir%
Chris@391 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%
Chris@391 70
Chris@387 71 powershell -NoProfile -ExecutionPolicy Bypass -Command "& 'deploy\win\zip.ps1' %pkg%.zip %pkg%"
Chris@387 72 del /q /s %pkg%
Chris@385 73
Chris@385 74 @echo Done