summaryrefslogtreecommitdiff
path: root/src/.nuget/BuildRyuJitPackage.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'src/.nuget/BuildRyuJitPackage.ps1')
-rw-r--r--src/.nuget/BuildRyuJitPackage.ps113
1 files changed, 11 insertions, 2 deletions
diff --git a/src/.nuget/BuildRyuJitPackage.ps1 b/src/.nuget/BuildRyuJitPackage.ps1
index 0770bd003d..82a86d3bff 100644
--- a/src/.nuget/BuildRyuJitPackage.ps1
+++ b/src/.nuget/BuildRyuJitPackage.ps1
@@ -32,7 +32,10 @@ Param(
# The directory that contains the .nuspec files that will be used to create the
# cross-platform and combined packages.
- [string]$nuspecDir
+ [string]$nuspecDir,
+
+ # The build number, if any.
+ [string]$buildNumber = $null
)
function Get-Latest-Blob-Name
@@ -162,10 +165,16 @@ $packages = @(
"Microsoft.DotNet.RyuJit"
)
+$packageVersion = "1.0.6-prerelease"
+if ($buildNumber)
+{
+ $packageVersion = $packageVersion + "-" + $buildNumber
+}
+
# Note: nuget appears to exit with code 0 in every case, so there's no way to detect failure here
# other than looking at the output.
foreach ($package in $packages) {
- Invoke-Expression "$nugetPath pack $packageOutputDir\$package.nuspec -NoPackageAnalysis -NoDefaultExcludes -OutputDirectory $packageOutputDir"
+ Invoke-Expression "$nugetPath pack $packageOutputDir\$package.nuspec -NoPackageAnalysis -NoDefaultExcludes -OutputDirectory $packageOutputDir -Version $packageVersion"
Invoke-Expression "$nugetPath push -NonInteractive $packageOutputDir\$package.nupkg -s $feed $apiKey"
}