Commit 582df7b6 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Minor fixes to SDK update PowerShell Script (#8617)

* for Win 7, we need to import BitsTransfer before using it
* switch to PowerShell's build-in archive expander (instead of relying on .NET)
parent 3d079414
......@@ -41,9 +41,9 @@ if (Test-Path $dartSdkPath) {
New-Item $dartSdkPath -force -type directory | Out-Null
$dartSdkZip = "$cachePath\dart-sdk.zip"
Import-Module BitsTransfer
Start-BitsTransfer -Source $dartSdkUrl -Destination $dartSdkZip
Add-Type -assembly "system.io.compression.filesystem"
[io.compression.zipfile]::ExtractToDirectory($dartSdkZip, $cachePath)
Expand-Archive $dartSdkZip -DestinationPath $cachePath
Remove-Item $dartSdkZip
$dartSdkVersion | Out-File $dartSdkStampPath -Encoding ASCII
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment