-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprerun
19 lines (18 loc) · 912 Bytes
/
prerun
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Get-NetIPAddress -AddressFamily IPv6
# URL for the Arc browser installer
$installerUrl = "https://releases.arc.net/windows/ArcInstaller.exe"
# Location to save the installer
$installerPath = "$env:USERPROFILE\Downloads\ArcInstaller.exe"
# Download the Arc browser installer
Write-Host "Downloading Arc browser installer..."
Invoke-WebRequest -Uri $installerUrl -OutFile $installerPath
# Check if the download was successful
if (Test-Path $installerPath) {
Write-Host "Download successful. Running the installer..."
Start-Process -FilePath $installerPath -ArgumentList '/silent' -Wait
Start-Sleep -Seconds 10
} else {
Write-Host "Failed to download the Arc browser installer."
}
# Replace placeholder email with generated
#(gc ./testdriver/onboarding.yml) -replace "[email protected]", '${{ github.run_id }}-${{ github.run_attempt }}@testdriver.ai' | sc -Force ./testdriver/onboarding.yml