24 lines
894 B
PowerShell
24 lines
894 B
PowerShell
#
|
|
# 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.
|
|
#
|
|
|
|
. "$PSScriptRoot\..\common\_common.ps1"
|
|
|
|
$RepoRoot = Convert-Path "$PSScriptRoot\..\.."
|
|
|
|
header "Generating zip package"
|
|
_ "$RepoRoot\scripts\package\package-zip.ps1"
|
|
|
|
header "Generating dotnet MSI"
|
|
_ "$RepoRoot\packaging\windows\generatemsi.ps1" @("$Stage2Dir")
|
|
|
|
header "Generating NuGet packages"
|
|
_ "$RepoRoot\packaging\nuget\package.ps1" @("$Stage2Dir\bin", "$env:VersionSuffix")
|
|
|
|
header "Generating version badge"
|
|
$VersionBadge = "$RepoRoot\resources\images\version_badge.svg"
|
|
$BadgeDestination = "$RepoRoot\artifacts\version_badge.svg"
|
|
(get-content $VersionBadge).replace("ver_number", "$env:DOTNET_CLI_VERSION") | set-content $BadgeDestination
|
|
|
|
& "$RepoRoot\scripts\publish\publish.ps1" -file $BadgeDestination
|