mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
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)
This commit is contained in:
parent
3d079414ad
commit
582df7b643
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user