forked from microsoft/binskim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreatePackagesFromLayoutDirectory.cmd
More file actions
36 lines (28 loc) · 986 Bytes
/
Copy pathCreatePackagesFromLayoutDirectory.cmd
File metadata and controls
36 lines (28 loc) · 986 Bytes
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
::This cmd script is depracated and can be deleted - before deletion make sure you update both releasing pipelines to call BuildAndTest.cmd instead of this script.
:: https://dev.azure.com/mseng/1ES/_releaseDefinition?definitionId=392&_a=definition-tasks&environmentId=741
:: https://dev.azure.com/mseng/1ES/_release?view=all&_a=releases&definitionId=150
::Build NuGet packages step
@ECHO off
SETLOCAL
set BinaryOutputDirectory=%1
set Configuration=%1
set Platform=%2
if "%BinaryOutputDirectory%" EQU "" (
set BinaryOutputDirectory=.\bld\bin\
)
if "%Configuration%" EQU "" (
set Configuration=Release
)
if "%Platform%" EQU "" (
set Platform=x64
)
call SetCurrentVersion.cmd
set Version=%MAJOR%.%MINOR%.%PATCH%%PRERELEASE%
set NuGetOutputDirectory=..\..\bld\bin\nuget\
call BuildPackages.cmd %Configuration% %Platform% %NuGetOutputDirectory% %Version% || goto :ExitFailed
goto :Exit
:ExitFailed
@echo.
@echo Build NuGet packages from layout directory step failed.
exit /b 1
:Exit