diff --git a/bucket/dotnet-install.json b/bucket/dotnet-install.json new file mode 100644 index 0000000000000..e715c98df496d --- /dev/null +++ b/bucket/dotnet-install.json @@ -0,0 +1,32 @@ +{ + "##": [ + "dotnet-install.ps1 is not versioned, version is created from metadata from a REST HEAD request.", + "* See: .", + "Source is available on GitHub, but it's not signed. Thus using Microsoft official URL.", + "dotnet-install.ps1 is not in PowerShell Gallery.", + "* See: .", + "Redirect from 'https://dot.net/v1/dotnet-install.ps1' to 'https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.ps1' is sometimes very slow", + "* Thus using 'builds.dotnet.microsoft.com' directly instead, which is not likely to change any time soon." + ], + "version": "2025.06.16.182847-11e9649f6a6b3f8f415d10fc920e9350", + "description": "Microsoft official dotnet CLI and SDK install script", + "homepage": "https://github.com/dotnet/install-scripts", + "license": "MIT", + "url": "https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.ps1", + "hash": "c437c543c98ee5bc9cfac6c627c18871a35020d8e3623c06eec0694c92531357", + "bin": "dotnet-install.ps1", + "checkver": { + "regex": "([\\d.]+-[a-f0-9]{32})", + "script": [ + "$ResponseHeaders = (Invoke-WebRequest -Method 'Head' -Uri 'https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.ps1').'Headers'", + "[string]::Format(", + " '{0}-{1}',", + " [datetime]::Parse($ResponseHeaders.'Last-Modified'[0]).ToUniversalTime().ToString('yyyy\\.MM\\.dd\\.HHmmss'),", + " [BitConverter]::ToString([System.Convert]::FromBase64String($ResponseHeaders.'Content-MD5')).Replace('-','').ToLower()", + ")" + ] + }, + "autoupdate": { + "url": "https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.ps1" + } +}