Windows Fixes for Flutter Tools (#7678)
This commit is contained in:
committed by
GitHub
parent
aff4e82891
commit
9f28b4ff71
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user