mirror of
https://github.com/flutter/flutter.git
synced 2026-02-11 21:33:08 +08:00
fix for PowerShell Script when flutter/bin is not in PATH (#8620)
This commit is contained in:
parent
0d958f036c
commit
4d394591cf
@ -26,5 +26,5 @@ If ($stdout -ne -1) {
|
||||
}
|
||||
}
|
||||
|
||||
flutter.bat $args
|
||||
& $PSScriptRoot\flutter.bat $args
|
||||
exit $LastExitCode
|
||||
|
||||
@ -40,10 +40,12 @@ 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
|
||||
|
||||
Write-Host "Unzipping Dart SDK..."
|
||||
Expand-Archive $dartSdkZip -DestinationPath $cachePath
|
||||
|
||||
Remove-Item $dartSdkZip
|
||||
$dartSdkVersion | Out-File $dartSdkStampPath -Encoding ASCII
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user