mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
[vcpkgTools.xml] Change sha256 to sha512
This commit is contained in:
parent
da9d1c4675
commit
2fa16cda18
@ -79,22 +79,22 @@ function vcpkgGetCredentials()
|
||||
}
|
||||
}
|
||||
|
||||
function vcpkgGetSHA256([Parameter(Mandatory=$true)][string]$filePath)
|
||||
function vcpkgGetSHA512([Parameter(Mandatory=$true)][string]$filePath)
|
||||
{
|
||||
if (vcpkgHasCommand -commandName 'Microsoft.PowerShell.Utility\Get-FileHash')
|
||||
{
|
||||
Write-Verbose("Hashing with Microsoft.PowerShell.Utility\Get-FileHash")
|
||||
$hash = (Microsoft.PowerShell.Utility\Get-FileHash -Path $filePath -Algorithm SHA256).Hash
|
||||
$hash = (Microsoft.PowerShell.Utility\Get-FileHash -Path $filePath -Algorithm SHA512).Hash
|
||||
}
|
||||
elseif(vcpkgHasCommand -commandName 'Pscx\Get-Hash')
|
||||
{
|
||||
Write-Verbose("Hashing with Pscx\Get-Hash")
|
||||
$hash = (Pscx\Get-Hash -Path $filePath -Algorithm SHA256).HashString
|
||||
$hash = (Pscx\Get-Hash -Path $filePath -Algorithm SHA512).HashString
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Verbose("Hashing with .NET")
|
||||
$hashAlgorithm = [Security.Cryptography.HashAlgorithm]::Create("SHA256")
|
||||
$hashAlgorithm = [Security.Cryptography.HashAlgorithm]::Create("SHA512")
|
||||
$fileAsByteArray = [io.File]::ReadAllBytes($filePath)
|
||||
$hashByteArray = $hashAlgorithm.ComputeHash($fileAsByteArray)
|
||||
$hash = -Join ($hashByteArray | ForEach-Object {"{0:x2}" -f $_})
|
||||
|
@ -62,8 +62,8 @@ function fetchToolInternal([Parameter(Mandatory=$true)][string]$tool)
|
||||
Write-Host "Downloading $tool... done."
|
||||
}
|
||||
|
||||
$expectedDownloadedFileHash = $toolData.sha256
|
||||
$downloadedFileHash = vcpkgGetSHA256 $downloadPath
|
||||
$expectedDownloadedFileHash = $toolData.sha512
|
||||
$downloadedFileHash = vcpkgGetSHA512 $downloadPath
|
||||
vcpkgCheckEqualFileHash -filePath $downloadPath -expectedHash $expectedDownloadedFileHash -actualHash $downloadedFileHash
|
||||
|
||||
if ($isArchive)
|
||||
|
@ -4,82 +4,82 @@
|
||||
<requiredVersion>3.10.2</requiredVersion>
|
||||
<exeRelativePath>cmake-3.10.2-win32-x86\bin\cmake.exe</exeRelativePath>
|
||||
<url>https://cmake.org/files/v3.10/cmake-3.10.2-win32-x86.zip</url>
|
||||
<sha256>f5f7e41a21d0e9b655aca58498b08e17ecd27796bf82837e2c84435359169dd6</sha256>
|
||||
<sha512>9c16861a2ac09c7011b84f38459ecfec2829a9f825b254acbbde46d98f12f8ca0d4db3a6764758cb671507ee7c0327576d87658b81d7ddf1e8280b37569eb16d</sha512>
|
||||
<archiveName>cmake-3.10.2-win32-x86.zip</archiveName>
|
||||
</tool>
|
||||
<tool name="cmake" os="osx">
|
||||
<requiredVersion>3.10.2</requiredVersion>
|
||||
<exeRelativePath>cmake-3.10.2-Darwin-x86_64/CMake.app/Contents/bin/cmake</exeRelativePath>
|
||||
<url>https://cmake.org/files/v3.10/cmake-3.10.2-Darwin-x86_64.tar.gz</url>
|
||||
<sha256>e748eb7698f8e2783c2eea9ab81eebf66da0238bbf8e8fa722a67a38f2110718</sha256>
|
||||
<sha512>cb7d76e11c892eb786da5804282c4141564390c3552e08c506c7abb93015eb5f619c55255459872b219399ce8114ac321fe92df7f82a7e42bbc874eec240571e</sha512>
|
||||
<archiveName>cmake-3.10.2-Darwin-x86_64.tar.gz</archiveName>
|
||||
</tool>
|
||||
<tool name="cmake" os="linux">
|
||||
<requiredVersion>3.10.2</requiredVersion>
|
||||
<exeRelativePath>cmake-3.10.2-Linux-x86_64/bin/cmake</exeRelativePath>
|
||||
<url>https://cmake.org/files/v3.10/cmake-3.10.2-Linux-x86_64.tar.gz</url>
|
||||
<sha256>7a82b46c35f4e68a0807e8dc04e779dee3f36cd42c6387fd13b5c29fe62a69ea</sha256>
|
||||
<sha512>54389b5cb3f3cb9d182d35e0b1eaf7b301695899930da0d26e9df1dc25056213a077646d23ea609a93daa81d30687757d9cf0dc263339fa3d73dbeb1284bc1a9</sha512>
|
||||
<archiveName>cmake-3.10.2-Linux-x86_64.tar.gz</archiveName>
|
||||
</tool>
|
||||
<tool name="git" os="windows">
|
||||
<requiredVersion>2.16.2</requiredVersion>
|
||||
<exeRelativePath>cmd\git.exe</exeRelativePath>
|
||||
<url>https://github.com/git-for-windows/git/releases/download/v2.16.2.windows.1/MinGit-2.16.2-32-bit.zip</url>
|
||||
<sha256>322c727e482aa97522c64a5ac68bdda3780111e8670bcfb532beac8e11ece5da</sha256>
|
||||
<sha512>004e1dc1904f2e2d5c3534d0a56f58bf030b1146f5b263d6d191e60f72cd35455977c588604708125a1e93268ee8f7a5ab32ed6115adc028257b12d5926f350a</sha512>
|
||||
<archiveName>MinGit-2.16.2-32-bit.zip</archiveName>
|
||||
</tool>
|
||||
<tool name="vswhere" os="windows">
|
||||
<requiredVersion>2.3.2</requiredVersion>
|
||||
<exeRelativePath>vswhere.exe</exeRelativePath>
|
||||
<url>https://github.com/Microsoft/vswhere/releases/download/2.3.2/vswhere.exe</url>
|
||||
<sha256>103f2784c4b2c8e70c7c1c03687abbf22bce052aae30639406e4e13ffa29ee04</sha256>
|
||||
<sha512>42f8a8ffd0b156b2e30b2ec7bf7d19582b3ce38a2046ff62bd7fd82f12a8d66ed601e74865957864cef0a376e33a7d07cad746f03c57d1b95a7929a1f8f119ed</sha512>
|
||||
</tool>
|
||||
<tool name="nuget" os="windows">
|
||||
<requiredVersion>4.4.0</requiredVersion>
|
||||
<exeRelativePath>nuget.exe</exeRelativePath>
|
||||
<url>https://dist.nuget.org/win-x86-commandline/v4.4.0/nuget.exe</url>
|
||||
<sha256>2cf9b118937eef825464e548f0c44f7f64090047746de295d75ac3dcffa3e1f6</sha256>
|
||||
<sha512>fb0903665d2a64ce1da3f40961eb19e46c152a631b2441750aa8b30b20acd2a5e78d7f1058e79e83e37959b3ce9a090a60f081895fdba9998715e3a64437c3e5</sha512>
|
||||
</tool>
|
||||
<tool name="installerbase" os="windows">
|
||||
<requiredVersion>3.1.81</requiredVersion>
|
||||
<exeRelativePath>QtInstallerFramework-win-x86\bin\installerbase.exe</exeRelativePath>
|
||||
<url>https://github.com/podsvirov/installer-framework/releases/download/cr203958-9/QtInstallerFramework-win-x86.zip</url>
|
||||
<sha256>f2ce23cf5cf9fc7ce409bdca49328e09a070c0026d3c8a04e4dfde7b05b83fe8</sha256>
|
||||
<sha512>1f3e593270d7c2a4e271fdb49c637a2de462351310ef66bba298d30f6ca23365ec6aecf2e57799a00c873267cd3f92060ecac03eb291d42903d0e0869cd17c73</sha512>
|
||||
<archiveName>QtInstallerFramework-win-x86.zip</archiveName>
|
||||
</tool>
|
||||
<tool name="7zip" os="windows">
|
||||
<requiredVersion>18.01.0</requiredVersion>
|
||||
<exeRelativePath>7za.exe</exeRelativePath>
|
||||
<url>https://www.7-zip.org/a/7z1801-extra.7z</url>
|
||||
<sha256>9371df22bcd0e1aff9eaa52aa3292350eecd011f11494e709314ae3f3eb279e2</sha256>
|
||||
<sha512>9133fc551d76515e37fdd4dd8c1e28d464aea493548246b44565a42bba46715764f41f9cfa14d470d298c3a6e9829d200f8be5168cb67cf8f23d8042fca833bc</sha512>
|
||||
<archiveName>7z1801-extra.7z</archiveName>
|
||||
</tool>
|
||||
<tool name="7zip920" os="windows">
|
||||
<requiredVersion>9.20.0</requiredVersion>
|
||||
<exeRelativePath>7za.exe</exeRelativePath>
|
||||
<url>https://www.7-zip.org/a/7za920.zip</url>
|
||||
<sha256>2a3afe19c180f8373fa02ff00254d5394fec0349f5804e0ad2f6067854ff28ac</sha256>
|
||||
<sha512>84e830c91a0e8ae499cc4814080da6569d8a6acbddc585c8b62abc86c809793aeb669b0a741063a379fd281ade85f120bc27efeb67d63bf961be893eec8bc3b3</sha512>
|
||||
<archiveName>7za920.zip</archiveName>
|
||||
</tool>
|
||||
<tool name="aria2" os="windows">
|
||||
<requiredVersion>18.01.0</requiredVersion>
|
||||
<exeRelativePath>aria2-1.33.1-win-32bit-build1\aria2c.exe</exeRelativePath>
|
||||
<url>https://github.com/aria2/aria2/releases/download/release-1.33.1/aria2-1.33.1-win-32bit-build1.zip</url>
|
||||
<sha256>04bf07c0449c703db17fbcd586365aebba00201ca513ca4808b543f1f9208f1f</sha256>
|
||||
<sha512>2456176ba3d506a07cf0cc4f61f080e1ff8cb4106426d66f354c5bb67a9a8720b5ddb26904275e61b1f623c932355f7dcde4cd17556cc895f11293c23c3a9bf3</sha512>
|
||||
<archiveName>aria2-1.33.1-win-32bit-build1.zip</archiveName>
|
||||
</tool>
|
||||
<tool name="ninja" os="linux">
|
||||
<requiredVersion>1.8.2</requiredVersion>
|
||||
<exeRelativePath>ninja</exeRelativePath>
|
||||
<url>https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip</url>
|
||||
<sha256>d2fea9ff33b3ef353161ed906f260d565ca55b8ca0568fa07b1d2cab90a84a07</sha256>
|
||||
<sha512>38fcb68e745c1f15b4b50f20069ffe686b1ef5baf93b74958e132ea5d30d155cf6970d6dc1b095aafd421ebd8bcc63acf4f64e305c496266b5182f99b815cca5</sha512>
|
||||
<archiveName>ninja-linux.zip</archiveName>
|
||||
</tool>
|
||||
<tool name="ninja" os="osx">
|
||||
<requiredVersion>1.8.2</requiredVersion>
|
||||
<exeRelativePath>ninja</exeRelativePath>
|
||||
<url>https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-mac.zip</url>
|
||||
<sha256>0347d55c66061652b26f48769d566761630ffde3143793b29064a57f356542cc</sha256>
|
||||
<sha512>acadfb286eb7d93676629701917fa0c3c39f36daa068c169e4a098c29f97380d1ea95abfd42b04798ff118fd9dc93fdb250fcda36086bac20bc5506354214fc3</sha512>
|
||||
<archiveName>ninja-mac.zip</archiveName>
|
||||
</tool>
|
||||
</tools>
|
||||
|
Loading…
x
Reference in New Issue
Block a user