fix for PowerShell Script when flutter/bin is not in PATH (#8620)

This commit is contained in:
Michael Goderbauer 2017-03-07 15:00:01 -08:00 committed by GitHub
parent 0d958f036c
commit 4d394591cf
2 changed files with 4 additions and 2 deletions

View File

@ -26,5 +26,5 @@ If ($stdout -ne -1) {
}
}
flutter.bat $args
& $PSScriptRoot\flutter.bat $args
exit $LastExitCode

View File

@ -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