forked from Azure/azure-relay-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage-all.cmd
More file actions
26 lines (24 loc) · 839 Bytes
/
Copy pathpackage-all.cmd
File metadata and controls
26 lines (24 loc) · 839 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
@echo off
SET _DOCKER_BUILD="true"
docker -v > NUL
if not errorlevel 0 (
echo Linux RPM and DEB packaging requires a docker install
SET _DOCKER_BUILD="false"
)
echo *** Sanity check Windows
dotnet restore
dotnet test %*
if not errorlevel 0 exit /b 1
echo *** Building and packaging Windows Targets
if %_DOCKER_BUILD% == "true" (
echo *** Windows only
msbuild /t:clean,restore,package /p:WindowsOnly=true;Configuration=Release %*
) else (
echo *** All platforms
msbuild /t:clean,restore,package /p:WindowsOnly=false;Configuration=Release %*
)
if not errorlevel 0 exit /b 1
if %_DOCKER_BUILD% == "true" (
echo *** Building and packaging Unix/Linux Targets
docker run --rm -v %cd%:/build mcr.microsoft.com/dotnet/core/sdk:3.0-buster /build/package.sh /p:TargetFramework=netcoreapp3.0 %*
)