Change to query for metadata from our file (#5468)

This commit is contained in:
Dongbo Wang
2017-11-15 13:54:30 -08:00
committed by GitHub
parent 4007470403
commit 5f72faab54
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -119,8 +119,8 @@ try {
Install-Package -InputObject $package -Destination $tempDir -ExcludeVersion > $null
$contentPath = [System.IO.Path]::Combine($tempDir, $packageName, "content")
} else {
$metadata = Invoke-RestMethod https://api.github.com/repos/powershell/powershell/releases/latest
$release = $metadata.tag_name -replace '^v'
$metadata = Invoke-RestMethod https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/metadata.json
$release = $metadata.ReleaseTag -replace '^v'
$packageName = if ($IsWinEnv) {
"PowerShell-${release}-win-${architecture}.zip"
+3
View File
@@ -0,0 +1,3 @@
{
"ReleaseTag": "v6.0.0-beta.9"
}