-
Notifications
You must be signed in to change notification settings - Fork 16
/
Publish.cmd
64 lines (45 loc) · 1.73 KB
/
Publish.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@echo off
echo.
echo Statistics Workbench :: Build and Packaging script
echo ===================================================
echo.
echo This Windows batch file will use Visual Studio 2013 to compile
echo and pack the binaries and sources of the Statistics Workbench.
echo.
:: Configuration
set version=1.0.0.1
:: Executables
set devenv="C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe"
set rar="C:\Program Files\WinRAR\rar"
set opts=a -m5 -s
:: File names
set binPath="Statistics-Workbench-%version%-bin.rar"
set srcPath="Statistics-Workbench-%version%-src.rar"
echo.
echo - Building Release configuration...
%devenv% "Statistics Workbench.sln" /Rebuild Release
echo.
echo Creating Statistics Workbench %binPath% archive
echo ---------------------------------------------------------
timeout /T 5
set output=Binaries\%srcPath%
del %output%
%rar% %opts% -r %output% ".\*" -x*\.git -x*\obj -x*\bin -x*\TestResults -x*.sdf -x*.suo -x*.user -x*.shfbproj_* -x*.vsp -x*.pidb -x*\packages -x*\Binaries -x*.pdb -x*.GhostDoc.xml
%rar% t %output%
echo.
echo Creating Accord.NET %binPath% archive
echo ---------------------------------------------------------
timeout /T 5
set output=Binaries\%binPath%
del %output%
%rar% %opts% %output% "Binaries\Release" -x*\.svn* -x*\.git* -x*.lastcodeanalysissucceeded -x*.CodeAnalysisLog.xml -x*.pdb
%rar% %opts% %output% "LICENSE.txt"
%rar% %opts% %output% "README.md"
%rar% t %output%
echo.
echo ---------------------------------------------------------
echo Package creation has completed. Please check the above
echo commands for errors and check packages in output folder.
echo ---------------------------------------------------------
echo.
timeout /T 10