Commit 4d394591 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

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

parent 0d958f03
...@@ -26,5 +26,5 @@ If ($stdout -ne -1) { ...@@ -26,5 +26,5 @@ If ($stdout -ne -1) {
} }
} }
flutter.bat $args & $PSScriptRoot\flutter.bat $args
exit $LastExitCode exit $LastExitCode
...@@ -40,10 +40,12 @@ if (Test-Path $dartSdkPath) { ...@@ -40,10 +40,12 @@ if (Test-Path $dartSdkPath) {
} }
New-Item $dartSdkPath -force -type directory | Out-Null New-Item $dartSdkPath -force -type directory | Out-Null
$dartSdkZip = "$cachePath\dart-sdk.zip" $dartSdkZip = "$cachePath\dart-sdk.zip"
Import-Module BitsTransfer Import-Module BitsTransfer
Start-BitsTransfer -Source $dartSdkUrl -Destination $dartSdkZip Start-BitsTransfer -Source $dartSdkUrl -Destination $dartSdkZip
Write-Host "Unzipping Dart SDK..."
Expand-Archive $dartSdkZip -DestinationPath $cachePath Expand-Archive $dartSdkZip -DestinationPath $cachePath
Remove-Item $dartSdkZip Remove-Item $dartSdkZip
$dartSdkVersion | Out-File $dartSdkStampPath -Encoding ASCII $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