Skip to content

Commit a4a8434

Browse files
merceyzamaitland
authored andcommitted
Build.ps1: Use minimal distribution instead of standard distribution
Resolves #56
1 parent 708aa2b commit a4a8434

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

build.ps1

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ function DownloadCefBinaryAndUnzip()
392392
$CefWin32CefVersion = $CefBuildsJson.windows32.versions | Where-Object {$_.cef_version -eq $CefVersion}
393393
$CefWin64CefVersion = $CefBuildsJson.windows64.versions | Where-Object {$_.cef_version -eq $CefVersion}
394394

395-
$Cef32FileName = ($CefWin32CefVersion.files | Where-Object {$_.type -eq "standard"}).name
396-
$Cef64FileName = ($CefWin64CefVersion.files | Where-Object {$_.type -eq "standard"}).name
395+
$Cef32FileName = ($CefWin32CefVersion.files | Where-Object {$_.type -eq "minimal"}).name
396+
$Cef64FileName = ($CefWin64CefVersion.files | Where-Object {$_.type -eq "minimal"}).name
397397

398398
# Make sure there is a 32bit and 64bit version for the specified build
399399
if ($CefWin32CefVersion.cef_version -ne $CefWin64CefVersion.cef_version)
@@ -407,7 +407,7 @@ function DownloadCefBinaryAndUnzip()
407407

408408
if (-not (Test-Path $LocalFile))
409409
{
410-
Write-Diagnostic "Downloading $Cef32FileName; this will take a while as the file is approximately 200 MiB large."
410+
Write-Diagnostic "Downloading $Cef32FileName; this will take a while as the file is approximately 80 MiB large."
411411
$Client.DownloadFile($CefBuildServerUrl + $Cef32FileName, $LocalFile);
412412
Write-Diagnostic "Download $Cef32FileName complete"
413413
}
@@ -436,7 +436,7 @@ function DownloadCefBinaryAndUnzip()
436436

437437
if (-not (Test-Path $LocalFile))
438438
{
439-
Write-Diagnostic "Downloading $Cef64FileName; this will take a while as the file is approximately 200 MiB large."
439+
Write-Diagnostic "Downloading $Cef64FileName; this will take a while as the file is approximately 100 MiB large."
440440
$Client.DownloadFile($CefBuildServerUrl + $Cef64FileName, $LocalFile);
441441
Write-Diagnostic "Download $Cef64FileName complete"
442442
}
@@ -465,13 +465,13 @@ function DownloadCefBinaryAndUnzip()
465465
function CopyFromLocalCefBuild()
466466
{
467467
# Example file names from cefsource build:
468-
# 32-bit: cef_binary_3.2924.1538.gbfdeccd_windows32.tar.bz2
469-
# 64-bit: cef_binary_3.2924.1538.gbfdeccd_windows64.tar.bz2
468+
# 32-bit: cef_binary_3.2924.1538.gbfdeccd_windows32_minimal.tar.bz2
469+
# 64-bit: cef_binary_3.2924.1538.gbfdeccd_windows64_minimal.tar.bz2
470470

471471
Write-Host $CefVersion
472472

473-
$Cef32FileName = "cef_binary_$($CefVersion)_windows32.tar.bz2"
474-
$Cef64FileName = "cef_binary_$($CefVersion)_windows64.tar.bz2"
473+
$Cef32FileName = "cef_binary_$($CefVersion)_windows32_minimal.tar.bz2"
474+
$Cef64FileName = "cef_binary_$($CefVersion)_windows64_minimal.tar.bz2"
475475

476476
set-alias sz "$env:ProgramFiles\7-Zip\7z.exe"
477477

@@ -488,7 +488,7 @@ function CopyFromLocalCefBuild()
488488

489489
if (-not (Test-Path $LocalFile))
490490
{
491-
Write-Diagnostic "Copy $Cef32FileName (approx 200mb)"
491+
Write-Diagnostic "Copy $Cef32FileName (approx 80mb)"
492492
Copy-Item ($CefBuildDir+$Cef32FileName) $LocalFile
493493
Write-Diagnostic "Copy of $Cef32FileName complete"
494494
}
@@ -517,7 +517,7 @@ function CopyFromLocalCefBuild()
517517

518518
if (-not (Test-Path $LocalFile))
519519
{
520-
Write-Diagnostic "Copy $Cef64FileName (approx 200mb)"
520+
Write-Diagnostic "Copy $Cef64FileName (approx 100mb)"
521521
Copy-Item ($CefBuildDir+$Cef64FileName) $LocalFile;
522522
Write-Diagnostic "Copy of $Cef64FileName complete"
523523
}

0 commit comments

Comments
 (0)