Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
Update pack script for RTM
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony van der Hoorn authored and Anthony van der Hoorn committed Jul 26, 2016
1 parent e85ca69 commit 4eb28ab
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions pack.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,23 @@ del /Q /S src\Glimpse.Agent.AspNet.Mvc\bin\Release

md dist

call dnu restore .\src\Glimpse.Common\project.json .\src\Glimpse.Server\project.json .\src\Glimpse.Agent.AspNet\project.json .\src\Glimpse.Agent.AspNet.Mvc\project.json
call dotnet restore .\src\Glimpse.Common\project.json
call dotnet restore .\src\Glimpse.Server\project.json
call dotnet restore .\src\Glimpse.Agent.AspNet\project.json
call dotnet restore .\src\Glimpse.Agent.AspNet.Mvc\project.json

REM get time
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c%%a%%b)
For /f "tokens=1-2 delims=/:" %%a in ("%TIME%") do (set mytime=%%a%%b)
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set DATE=%%c%%a%%b)
For /f "tokens=1-2 delims=/:" %%a in ("%TIME%") do (set TIME=%%a%%b)

set DNX_BUILD_VERSION=beta1
set MILESTONE=beta2-%DATE%%TIME%

call dnu pack .\src\Glimpse.Common\project.json .\src\Glimpse.Server\project.json .\src\Glimpse.Agent.AspNet\project.json .\src\Glimpse.Agent.AspNet.Mvc\project.json --configuration Release
call dotnet pack .\src\Glimpse.Common\project.json --configuration Release --version-suffix %MILESTONE%
call dotnet pack .\src\Glimpse.Server\project.json --configuration Release --version-suffix %MILESTONE%
call dotnet pack .\src\Glimpse.Agent.AspNet\project.json --configuration Release --version-suffix %MILESTONE%
call dotnet pack .\src\Glimpse.Agent.AspNet.Mvc\project.json --configuration Release --version-suffix %MILESTONE%

call nuget pack src\Glimpse\Glimpse.nuspec -OutputDirectory dist -version 2.0.0-%DNX_BUILD_VERSION%
call nuget pack src\Glimpse\Glimpse.nuspec -OutputDirectory dist -version 2.0.0-%MILESTONE%

copy /Y src\Glimpse.Common\bin\Release\*.nupkg dist
copy /Y src\Glimpse.Server\bin\Release\*.nupkg dist
Expand Down

0 comments on commit 4eb28ab

Please sign in to comment.