mirror of
https://github.com/flutter/flutter
synced 2024-10-16 13:12:53 +00:00
15 lines
729 B
PowerShell
15 lines
729 B
PowerShell
|
$url= "https://storage.googleapis.com/chrome-infra/depot_tools.zip"
|
||
|
$zipPath = "C:\Windows\Temp\depot_tools.zip"
|
||
|
$path = "C:\Windows\Temp\depot_tools"
|
||
|
$gclient = "C:\Windows\Temp\depot_tools\gclient.bat"
|
||
|
$cipd = "C:\Windows\Temp\depot_tools\cipd.bat"
|
||
|
$ensureFile = "C:\Windows\Temp\depot_tools\ensure.txt"
|
||
|
$text = "# Ensure File`n`$ServiceURL https://chrome-infra-packages.appspot.com`n`n# Skia Gold Client goldctl`nskia/tools/goldctl/`${platform} latest"
|
||
|
|
||
|
(New-Object System.Net.WebClient).DownloadFile($url, $zipPath)
|
||
|
Expand-Archive -LiteralPath $zipPath -DestinationPath $path
|
||
|
cd $path
|
||
|
cmd.exe /C "$gclient"
|
||
|
$text | Out-File -filePath $ensureFile -encoding ascii
|
||
|
cmd.exe /C "$cipd ensure -ensure-file $ensureFile -root $path"
|