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@385
|
17 call .\deploy\win64\build-both.bat
|
Chris@385
|
18 if %errorlevel% neq 0 exit /b %errorlevel%
|
Chris@385
|
19
|
Chris@385
|
20 set NAME=Open Source Developer, Christopher Cannam
|
Chris@385
|
21
|
Chris@385
|
22 @echo Signing 32-bit executables and libraries
|
Chris@385
|
23 signtool sign /v /n "%NAME%" /t http://time.certum.pl /fd sha1 /a build_win32\release\*.exe build_win32\release\*.dll
|
Chris@385
|
24
|
Chris@385
|
25 @echo Signing 64-bit executables and libraries
|
Chris@385
|
26 signtool sign /v /n "%NAME%" /t http://time.certum.pl /fd sha1 /a build_win64\release\*.exe build_win64\release\*.dll
|
Chris@385
|
27
|
Chris@385
|
28 @echo Zipping up 32-bit package
|
Chris@385
|
29 set pkg=sonic-annotator-%VERSION%-win32
|
Chris@385
|
30 set dir=%pkg%\%pkg%
|
Chris@385
|
31 mkdir %pkg%
|
Chris@385
|
32 mkdir %dir%
|
Chris@385
|
33 copy CHANGELOG %dir%\CHANGELOG.txt
|
Chris@385
|
34 copy CITATION %dir%\CITATION.txt
|
Chris@385
|
35 copy COPYING %dir%\COPYING.txt
|
Chris@385
|
36 copy README.md %dir%\README.txt
|
Chris@385
|
37 copy build_win32\release\Qt5Core.dll %dir%\
|
Chris@385
|
38 copy build_win32\release\Qt5Network.dll %dir%\
|
Chris@385
|
39 copy build_win32\release\Qt5Xml.dll %dir%\
|
Chris@385
|
40 copy build_win32\release\libgcc_s_dw2-1.dll %dir%\
|
Chris@385
|
41 copy build_win32\release\libstdc++-6.dll %dir%\
|
Chris@385
|
42 copy build_win32\release\libwinpthread-1.dll %dir%\
|
Chris@385
|
43 copy build_win32\release\sonic-annotator.exe %dir%\
|
Chris@385
|
44 deploy\win\zip %pkg%.zip %pkg%
|
Chris@385
|
45
|
Chris@385
|
46 @echo Zipping up 64-bit package
|
Chris@385
|
47 set pkg=sonic-annotator-%VERSION%-win64
|
Chris@385
|
48 set dir=%pkg%\%pkg%
|
Chris@385
|
49 mkdir %pkg%
|
Chris@385
|
50 mkdir %dir%
|
Chris@385
|
51 copy CHANGELOG %dir%\CHANGELOG.txt
|
Chris@385
|
52 copy CITATION %dir%\CITATION.txt
|
Chris@385
|
53 copy COPYING %dir%\COPYING.txt
|
Chris@385
|
54 copy README.md %dir%\README.txt
|
Chris@385
|
55 copy build_win64\release\Qt5Core.dll %dir%\
|
Chris@385
|
56 copy build_win64\release\Qt5Network.dll %dir%\
|
Chris@385
|
57 copy build_win64\release\Qt5Xml.dll %dir%\
|
Chris@385
|
58 copy build_win64\release\libsndfile-1.dll %dir%\
|
Chris@385
|
59 copy build_win64\release\sonic-annotator.exe %dir%\
|
Chris@385
|
60 deploy\win\zip %pkg%.zip %pkg%
|
Chris@385
|
61
|
Chris@385
|
62 @echo Done
|