forked from mfilippov/vimeo-dot-net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
70 lines (55 loc) · 3.1 KB
/
build.bat
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
@echo Off
set config=%1
if "%config%" == "" (
set config=Release
)
REM Build
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe VimeoDotNet.sln /p:Configuration=%config% /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:true /p:BuildInParallel=true /p:RestorePackages=true /t:Clean,Rebuild
if not "%errorlevel%"=="0" goto failure
rd target /Q /S
mkdir target
mkdir target\package
mkdir target\package\lib
mkdir target\package\lib\net45
mkdir target\package\lib\net45-client
mkdir target\package\lib\net451
mkdir target\package\lib\net451-client
mkdir target\package\lib\net452
mkdir target\package\lib\net452-client
mkdir target\package\lib\net46
mkdir target\package\lib\net46-client
copy LICENSE target\
copy readme.md target\package\
copy src\VimeoDotNet.Net45\bin\Release\VimeoDotNet.dll target\package\lib\net45\
copy src\VimeoDotNet.Net45\bin\Release\VimeoDotNet.pdb target\package\lib\net45\
copy src\VimeoDotNet.Net45\bin\Release\VimeoDotNet.xml target\package\lib\net45\
copy src\VimeoDotNet.Net45\bin\Release\VimeoDotNet.dll target\package\lib\net45-client\
copy src\VimeoDotNet.Net45\bin\Release\VimeoDotNet.pdb target\package\lib\net45-client\
copy src\VimeoDotNet.Net45\bin\Release\VimeoDotNet.xml target\package\lib\net45-client\
copy src\VimeoDotNet.Net451\bin\Release\VimeoDotNet.dll target\\package\lib\net451\
copy src\VimeoDotNet.Net451\bin\Release\VimeoDotNet.pdb target\\package\lib\net451\
copy src\VimeoDotNet.Net451\bin\Release\VimeoDotNet.xml target\\package\lib\net451\
copy src\VimeoDotNet.Net451\bin\Release\VimeoDotNet.dll target\\package\lib\net451-client\
copy src\VimeoDotNet.Net451\bin\Release\VimeoDotNet.pdb target\\package\lib\net451-client\
copy src\VimeoDotNet.Net451\bin\Release\VimeoDotNet.xml target\\package\lib\net451-client\
copy src\VimeoDotNet.Net452\bin\Release\VimeoDotNet.dll target\package\lib\net452\
copy src\VimeoDotNet.Net452\bin\Release\VimeoDotNet.pdb target\package\lib\net452\
copy src\VimeoDotNet.Net452\bin\Release\VimeoDotNet.xml target\package\lib\net452\
copy src\VimeoDotNet.Net452\bin\Release\VimeoDotNet.dll target\package\lib\net452-client\
copy src\VimeoDotNet.Net452\bin\Release\VimeoDotNet.pdb target\package\lib\net452-client\
copy src\VimeoDotNet.Net452\bin\Release\VimeoDotNet.xml target\package\lib\net452-client\
copy src\VimeoDotNet.Net46\bin\Release\VimeoDotNet.dll target\package\lib\net46\
copy src\VimeoDotNet.Net46\bin\Release\VimeoDotNet.pdb target\package\lib\net46\
copy src\VimeoDotNet.Net46\bin\Release\VimeoDotNet.xml target\package\lib\net46\
copy src\VimeoDotNet.Net46\bin\Release\VimeoDotNet.dll target\package\lib\net46-client\
copy src\VimeoDotNet.Net46\bin\Release\VimeoDotNet.pdb target\package\lib\net46-client\
copy src\VimeoDotNet.Net46\bin\Release\VimeoDotNet.xml target\package\lib\net46-client\
%nuget% pack "VimeoDotNet.nuspec" -BasePath target\package -Output target
%nuget% pack "VimeoDotNet.nuspec" -Symbols -BasePath target\package -Output target
if not "%errorlevel%"=="0" goto failure
:success
REM use github status API to indicate commit compile success
exit 0
:failure
REM use github status API to indicate commit compile success
exit -1