2015-11-16 19:21:57 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
|
|
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
#
|
|
|
|
|
2015-12-28 19:47:21 +00:00
|
|
|
. "$PSScriptRoot\..\common\_common.ps1"
|
2016-01-08 18:45:20 +00:00
|
|
|
. "$RepoRoot\scripts\build\generate-version.ps1"
|
2015-10-20 16:05:17 +00:00
|
|
|
|
2016-01-08 18:45:20 +00:00
|
|
|
header "Generating zip package"
|
|
|
|
_ "$RepoRoot\scripts\package\package-zip.ps1"
|
2015-10-20 16:05:17 +00:00
|
|
|
|
2016-01-08 18:45:20 +00:00
|
|
|
header "Generating dotnet MSI"
|
|
|
|
_ "$RepoRoot\packaging\windows\generatemsi.ps1" @("$Stage2Dir")
|
2015-10-20 16:05:17 +00:00
|
|
|
|
2016-01-08 18:45:20 +00:00
|
|
|
header "Generating NuGet packages"
|
2016-01-12 23:27:02 +00:00
|
|
|
_ "$RepoRoot\packaging\nuget\package.ps1" @("$Stage2Dir\bin", "$env:VersionSuffix")
|
2016-01-28 06:00:58 +00:00
|
|
|
|
2016-01-28 07:14:13 +00:00
|
|
|
header "Generating version badge"
|
|
|
|
$VersionBadge = "$RepoRoot\resources\images\version_badge.svg"
|
2016-01-28 15:03:41 +00:00
|
|
|
$BadgeDestination = "$RepoRoot\artifacts\version_badge.svg"
|
|
|
|
(get-content $VersionBadge).replace("ver_number", "$env:DOTNET_CLI_VERSION") | set-content $BadgeDestination
|
2016-01-28 06:00:58 +00:00
|
|
|
|
2016-01-29 17:06:12 +00:00
|
|
|
& "$RepoRoot\scripts\publish\publish.ps1" -file $BadgeDestination
|