Skip to content

Commit f5efbad

Browse files
committed
Fix CEF url downloading
1 parent 4ddf218 commit f5efbad

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: build.ps1

+5-3
Original file line numberDiff line numberDiff line change
@@ -535,10 +535,12 @@ function DownloadCefBinaryAndUnzip()
535535
$LocalFile = Join-Path $WorkingDir $CefFileName
536536
if (-not (Test-Path $LocalFile))
537537
{
538+
$UriEncodedFileName = [System.Web.HttpUtility]::UrlEncode($CefFileName).Replace("%2b", "%2B")
539+
$FullUri = $CefBuildServerUrl + $UriEncodedFileName
540+
Write-Diagnostic "Downloading $FullUri this will take a while as the file is $CefFileSize MB."
541+
538542
$Client = New-Object System.Net.WebClient;
539-
540-
Write-Diagnostic "Downloading $CefFileName; this will take a while as the file is $CefFileSize MB."
541-
$Client.DownloadFile($CefBuildServerUrl + [System.Web.HttpUtility]::UrlEncode($CefFileName), $LocalFile);
543+
$Client.DownloadFile($FullUri, $LocalFile);
542544

543545
if (-not (Test-Path $LocalFile))
544546
{

0 commit comments

Comments
 (0)