Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build.ps1: Use minimal distribution instead of standard distribution #57

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ function DownloadCefBinaryAndUnzip()
$CefWin32CefVersion = $CefBuildsJson.windows32.versions | Where-Object {$_.cef_version -eq $CefVersion}
$CefWin64CefVersion = $CefBuildsJson.windows64.versions | Where-Object {$_.cef_version -eq $CefVersion}

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

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

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

Write-Diagnostic "Downloading $Cef64FileName; this will take a while as the file is approximately 200 MiB large."
Write-Diagnostic "Downloading $Cef64FileName; this will take a while as the file is approximately 100 MiB large."
$Client.DownloadFile($CefBuildServerUrl + $Cef64FileName, $LocalFile);
Write-Diagnostic "Download $Cef64FileName complete"
}
Expand All @@ -461,13 +461,13 @@ function DownloadCefBinaryAndUnzip()
function CopyFromLocalCefBuild()
{
# Example file names from cefsource build:
# 32-bit: cef_binary_3.2924.1538.gbfdeccd_windows32.tar.bz2
# 64-bit: cef_binary_3.2924.1538.gbfdeccd_windows64.tar.bz2
# 32-bit: cef_binary_3.2924.1538.gbfdeccd_windows32_minimal.tar.bz2
# 64-bit: cef_binary_3.2924.1538.gbfdeccd_windows64_minimal.tar.bz2

Write-Host $CefVersion

$Cef32FileName = "cef_binary_$($CefVersion)_windows32.tar.bz2"
$Cef64FileName = "cef_binary_$($CefVersion)_windows64.tar.bz2"
$Cef32FileName = "cef_binary_$($CefVersion)_windows32_minimal.tar.bz2"
$Cef64FileName = "cef_binary_$($CefVersion)_windows64_minimal.tar.bz2"

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

Expand All @@ -484,7 +484,7 @@ function CopyFromLocalCefBuild()

if(-not (Test-Path $LocalFile))
{
Write-Diagnostic "Copy $Cef32FileName (approx 200mb)"
Write-Diagnostic "Copy $Cef32FileName (approx 80mb)"
Copy-Item ($CefBuildDir+$Cef32FileName) $LocalFile
Write-Diagnostic "Copy of $Cef32FileName complete"
}
Expand All @@ -510,7 +510,7 @@ function CopyFromLocalCefBuild()
if(-not (Test-Path $LocalFile))
{

Write-Diagnostic "Copy $Cef64FileName (approx 200mb)"
Write-Diagnostic "Copy $Cef64FileName (approx 100mb)"
Copy-Item ($CefBuildDir+$Cef64FileName) $LocalFile;
Write-Diagnostic "Copy of $Cef64FileName complete"
}
Expand Down