Skip to content

Commit

Permalink
Fix Parsing difference between PS and PSCore (microsoft#139255)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trenly authored Feb 15, 2024
1 parent 813c01a commit f51b66b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/YamlCreate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ if ($Settings) {
exit
}

$ScriptHeader = '# Created with YamlCreate.ps1 v2.3.3'
$ScriptHeader = '# Created with YamlCreate.ps1 v2.3.4'
$ManifestVersion = '1.6.0'
$PSDefaultParameterValues = @{ '*:Encoding' = 'UTF8' }
$Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False
Expand All @@ -189,7 +189,7 @@ if ($ScriptSettings.EnableDeveloperOptions -eq $true -and $null -ne $ScriptSetti
$useDirectSchemaLink = if ($env:GITHUB_ACTIONS -eq $true) {
$true
} else {
(Invoke-WebRequest "https://aka.ms/winget-manifest.version.$ManifestVersion.schema.json" -UseBasicParsing).BaseResponse.ResponseUri.IdnHost -match 'bing'
(Invoke-WebRequest "https://aka.ms/winget-manifest.version.$ManifestVersion.schema.json" -UseBasicParsing).Content -match '<!doctype html>'
}
$SchemaUrls = @{
version = if ($useDirectSchemaLink) { "https://raw.githubusercontent.com/microsoft/winget-cli/master/schemas/JSON/manifests/v$ManifestVersion/manifest.version.$ManifestVersion.json" } else { "https://aka.ms/winget-manifest.version.$ManifestVersion.schema.json" }
Expand Down

0 comments on commit f51b66b

Please sign in to comment.