Skip to content

Commit

Permalink
Fix CEF url downloading
Browse files Browse the repository at this point in the history
  • Loading branch information
amaitland committed Feb 12, 2025
1 parent 4ddf218 commit f5efbad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -535,10 +535,12 @@ function DownloadCefBinaryAndUnzip()
$LocalFile = Join-Path $WorkingDir $CefFileName
if (-not (Test-Path $LocalFile))
{
$UriEncodedFileName = [System.Web.HttpUtility]::UrlEncode($CefFileName).Replace("%2b", "%2B")
$FullUri = $CefBuildServerUrl + $UriEncodedFileName
Write-Diagnostic "Downloading $FullUri this will take a while as the file is $CefFileSize MB."

$Client = New-Object System.Net.WebClient;

Write-Diagnostic "Downloading $CefFileName; this will take a while as the file is $CefFileSize MB."
$Client.DownloadFile($CefBuildServerUrl + [System.Web.HttpUtility]::UrlEncode($CefFileName), $LocalFile);
$Client.DownloadFile($FullUri, $LocalFile);

if (-not (Test-Path $LocalFile))
{
Expand Down

0 comments on commit f5efbad

Please sign in to comment.