tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

install_edge.yml (3047B)


      1 parameters:
      2  channel: dev
      3 
      4 # Should match https://web-platform-tests.org/running-tests/chrome.html
      5 # Just replace chrome with edgechromium
      6 steps:
      7 - ${{ if eq(parameters.channel, 'stable') }}:
      8  - powershell: |
      9      $edgeInstallerName = 'MicrosoftEdgeSetup.exe'
     10      # Link to Stable channel installer
     11      Start-BitsTransfer -Source 'https://go.microsoft.com/fwlink/?linkid=2108834&Channel=Stable&language=en' -Destination MicrosoftEdgeSetup.exe
     12      if (-not (Test-Path $edgeInstallerName)) {
     13        Throw "Failed to download Edge installer to $edgeInstallerName."
     14      }
     15      cmd /c START /WAIT $edgeInstallerName /silent /install
     16      $edgePath = "$env:systemdrive\Program Files (x86)\Microsoft\Edge\Application"
     17      if (Test-Path $edgePath) {
     18        Write-Host "##vso[task.prependpath]$edgePath"
     19        Write-Host "Edge Stable installed at $edgePath."
     20        (Get-Item -Path "$edgePath\msedge.exe").VersionInfo | Format-List
     21      } else {
     22        Copy-Item -Path "$env:temp\*edge*.log" -Destination $(Build.ArtifactStagingDirectory)  -Force
     23        Throw "Failed to install Edge at $edgePath"
     24      }
     25    displayName: 'Install Edge Stable'
     26 
     27 - ${{ if eq(parameters.channel, 'canary') }}:
     28  - powershell: |
     29      $edgeInstallerName = 'MicrosoftEdgeSetup.exe'
     30      # Link to Canary channel installer
     31      Start-BitsTransfer -Source 'https://go.microsoft.com/fwlink/?linkid=2084649&Channel=Canary&language=en-us' -Destination MicrosoftEdgeSetup.exe
     32      if (-not (Test-Path $edgeInstallerName)) {
     33        Throw "Failed to download Edge installer to $edgeInstallerName."
     34      }
     35      cmd /c START /WAIT $edgeInstallerName /silent /install
     36      $edgePath = "$env:localappdata\Microsoft\Edge SxS\Application"
     37      if (Test-Path $edgePath) {
     38        Write-Host "##vso[task.prependpath]$edgePath"
     39        Write-Host "Edge Canary installed at $edgePath."
     40        (Get-Item -Path "$edgePath\msedge.exe").VersionInfo | Format-List
     41      } else {
     42        Copy-Item -Path "$env:temp\*edge*.log" -Destination $(Build.ArtifactStagingDirectory)  -Force
     43        Throw "Failed to install Edge Canary at $edgePath"
     44      }
     45    displayName: 'Install Edge Canary'
     46 - ${{ if eq(parameters.channel, 'dev') }}:
     47  - powershell: |
     48      $edgeInstallerName = 'MicrosoftEdgeSetup.exe'
     49      # Link to Dev channel installer
     50      Start-BitsTransfer -Source 'https://go.microsoft.com/fwlink/?linkid=2069324&Channel=Dev&language=en-us' -Destination MicrosoftEdgeSetup.exe
     51      cmd /c START /WAIT $edgeInstallerName /silent /install
     52      $edgePath = "$env:systemdrive\Program Files (x86)\Microsoft\Edge Dev\Application"
     53      if (Test-Path $edgePath) {
     54        Write-Host "##vso[task.prependpath]$edgePath"
     55        Write-Host "Edge Canary installed at $edgePath."
     56        (Get-Item -Path "$edgePath\msedge.exe").VersionInfo | Format-List
     57      } else {
     58        Copy-Item -Path "$env:temp\*edge*.log" -Destination $(Build.ArtifactStagingDirectory) -Force
     59        Throw "Failed to install Edge Dev at $edgePath"
     60      }
     61    displayName: 'Install Edge Dev'