-
Notifications
You must be signed in to change notification settings - Fork 0
/
InstallDependencies.ps1
29 lines (21 loc) · 1.2 KB
/
InstallDependencies.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$RootDir="D:\EdgeCI"
if (!(Test-Path "$RootDir\Downloads")) {
$DepotToolsUrl="https://storage.googleapis.com/chrome-infra/depot_tools.zip"
$VSSDKUrl="https://download.microsoft.com/download/5/A/0/5A08CEF4-3EC9-494A-9578-AB687E716C12/windowssdk/winsdksetup.exe"
# Download Files
New-Item -ItemType Directory -Force -Path $RootDir\Downloads
$client = New-Object System.Net.WebClient
$client.DownloadFile($DepotToolsUrl, "$RootDir\Downloads\depot_tools.zip")
$client.DownloadFile($VSSDKUrl, "$RootDir\Downloads\winsdksetup.exe")
# Install Depot Tools
Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$RootDir\Downloads\depot_tools.zip", "$RootDir\DepotTools\")
Copy-Item edge.py -destination $RootDir\DepotTools\fetch_configs\edge.py
# Install Windows SDK
Start-Process -Wait "$RootDir\Downloads\winsdksetup.exe" "/features OptionId.WindowsDesktopDebuggers OptionId.DesktopCPPx64 OptionId.DesktopCPPx86 /q"
# fetch code
New-Item -ItemType Directory -Force -Path $RootDir\chromium
cd $RootDir\chromium
# fetch --no-history edge
fetch --no-history chromium
}
exit $LastExitCode