forked from accord-net/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create-release.cmd
90 lines (71 loc) · 1.41 KB
/
create-release.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
@echo off
:: (enable termination from subroutine)
SETLOCAL
set ERROR_CODE=0
if "%selfWrapped%"=="" (
set selfWrapped=true
%ComSpec% /s /c ""%~0" %*"
goto :eof
)
:: Automated builder for executable installer,
:: compressed archive and NuGet packages
echo.
echo =========================================================
if "%1"=="version" goto version
if "%1"=="build" goto build
if "%1"=="archive-framework" goto archive-framework
if "%1"=="archive-samples" goto archive-samples
if "%1"=="pack" goto pack
if "%1"=="push" goto push
if not "%1" == "" goto error
:version
:: Update version numbers
cmd /c "update-version.cmd"
echo.
echo.
:build
:: Compile sources
cd ..
cmd /c "build-all.cmd"
if %errorlevel% neq 0 exit /b %errorlevel%
cd Setup
echo.
echo.
:archive-framework
:: Build compressed archive
cd Archiver
cmd /c "package-framework.cmd"
if %errorlevel% neq 0 exit /b %errorlevel%
cd ..
:archive-samples
cd Archiver
cmd /c "package-samples.cmd"
if %errorlevel% neq 0 exit /b %errorlevel%
cd ..
echo.
echo.
:: Build executable installer [disabled since v3.3.0]
:: cd Installer
:: cmd /c Build.cmd
:: cd ..
:: echo.
:: echo.
:pack
:: Build NuGet packages
cd NuGet
cmd /c "create-packages.cmd"
if %errorlevel% neq 0 exit /b %errorlevel%
cd ..
echo.
echo.
pause
goto :eof
:error
echo "Unknown command '%1'."
goto :eof
:push
:: push NuGet packages to nuget.com
cd NuGet
cmd /c push-packages.cmd
cd ..
goto :eof