Windows Fixes for Flutter Tools (#7678)

This commit is contained in:
Michael Goderbauer
2017-01-26 17:04:53 -08:00
committed by GitHub
parent aff4e82891
commit 9f28b4ff71
4 changed files with 18 additions and 8 deletions

View File

@@ -52,10 +52,13 @@ if (!(Test-Path $snapshotPath) `
Invoke-Expression "$flutterRoot\bin\internal\update_dart_sdk.ps1"
Write-Host "Building flutter tool..."
Set-Location $flutterToolsDir
if (Test-Path "$flutterToolsDir\pubspec.lock") { Remove-Item "$flutterToolsDir\pubspec.lock" }
Push-Location
Set-Location $flutterToolsDir
Invoke-Expression "$pub get --verbosity=error --no-packages-dir"
Set-Location $flutterRoot
Pop-Location
Invoke-Expression "$dart --snapshot=`"$snapshotPath`" `"$scriptPath`" --packages=`"$flutterToolsDir\.packages`""
$revision | Out-File $stampPath
}