mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Change to query for metadata from our file (#5468)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"ReleaseTag": "v6.0.0-beta.9"
|
||||
}
|
||||
Reference in New Issue
Block a user