comparison deploy/clean-build-and-package.bat @ 385:96e5adab61c2

Toward making Windows zip
author Chris Cannam
date Mon, 08 Jun 2020 14:46:32 +0100
parents
children 3a4cb8f27c10
comparison
equal deleted inserted replaced
384:c9b2dca061a6 385:96e5adab61c2
1 @rem Run this from within the top-level dir: deploy\clean-build-and-package
2 @echo on
3
4 @set /p VERSION=<version.h
5 @set VERSION=%VERSION:#define RUNNER_VERSION "=%
6 set VERSION=%VERSION:"=%
7
8 @echo(
9 @set YN=y
10 @set /p YN="Proceed to clean, rebuild, package, and sign version %VERSION% [Yn] ?"
11
12 @if "%YN%" == "Y" set YN=y
13 @if "%YN%" neq "y" exit /b 3
14
15 @echo Proceeding
16
17 call .\deploy\win64\build-both.bat
18 if %errorlevel% neq 0 exit /b %errorlevel%
19
20 set NAME=Open Source Developer, Christopher Cannam
21
22 @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
24
25 @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
27
28 @echo Zipping up 32-bit package
29 set pkg=sonic-annotator-%VERSION%-win32
30 set dir=%pkg%\%pkg%
31 mkdir %pkg%
32 mkdir %dir%
33 copy CHANGELOG %dir%\CHANGELOG.txt
34 copy CITATION %dir%\CITATION.txt
35 copy COPYING %dir%\COPYING.txt
36 copy README.md %dir%\README.txt
37 copy build_win32\release\Qt5Core.dll %dir%\
38 copy build_win32\release\Qt5Network.dll %dir%\
39 copy build_win32\release\Qt5Xml.dll %dir%\
40 copy build_win32\release\libgcc_s_dw2-1.dll %dir%\
41 copy build_win32\release\libstdc++-6.dll %dir%\
42 copy build_win32\release\libwinpthread-1.dll %dir%\
43 copy build_win32\release\sonic-annotator.exe %dir%\
44 deploy\win\zip %pkg%.zip %pkg%
45
46 @echo Zipping up 64-bit package
47 set pkg=sonic-annotator-%VERSION%-win64
48 set dir=%pkg%\%pkg%
49 mkdir %pkg%
50 mkdir %dir%
51 copy CHANGELOG %dir%\CHANGELOG.txt
52 copy CITATION %dir%\CITATION.txt
53 copy COPYING %dir%\COPYING.txt
54 copy README.md %dir%\README.txt
55 copy build_win64\release\Qt5Core.dll %dir%\
56 copy build_win64\release\Qt5Network.dll %dir%\
57 copy build_win64\release\Qt5Xml.dll %dir%\
58 copy build_win64\release\libsndfile-1.dll %dir%\
59 copy build_win64\release\sonic-annotator.exe %dir%\
60 deploy\win\zip %pkg%.zip %pkg%
61
62 @echo Done