-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathbuild.cmd
34 lines (25 loc) · 938 Bytes
/
build.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
@ECHO OFF
SETLOCAL
CALL ..\..\..\build\set35vars.bat
SET BASENAME=Cyotek.Collections.Generic.CircularBuffer
SET RELDIR=src\bin\Release\
SET PRJFILE=src\%BASENAME%.csproj
SET DLLNAME=%BASENAME%.dll
IF EXIST %RELDIR%*.nupkg DEL /F %RELDIR%*.nupkg
IF EXIST %RELDIR%*.snupkg DEL /F %RELDIR%*.snupkg
dotnet build %PRJFILE% --configuration Release
CALL signcmd %RELDIR%net35\%DLLNAME%
CALL signcmd %RELDIR%net40\%DLLNAME%
CALL signcmd %RELDIR%net452\%DLLNAME%
CALL signcmd %RELDIR%net462\%DLLNAME%
CALL signcmd %RELDIR%net472\%DLLNAME%
CALL signcmd %RELDIR%net48\%DLLNAME%
CALL signcmd %RELDIR%netcoreapp2.1\%DLLNAME%
CALL signcmd %RELDIR%netcoreapp2.2\%DLLNAME%
CALL signcmd %RELDIR%netcoreapp3.1\%DLLNAME%
CALL signcmd %RELDIR%netstandard2.0\%DLLNAME%
CALL signcmd %RELDIR%netstandard2.1\%DLLNAME%
dotnet pack %PRJFILE% --configuration Release --no-build
CALL sign-package %RELDIR%*.nupkg
CALL sign-package %RELDIR%*.snupkg
ENDLOCAL