Skip to content

Commit 4ddf218

Browse files
committed
build.ps1 - Fix build issue where there are multiple CEF builds with the same version number
- One is Stable and the other Beta, they're both the same build so just order and get the latest
1 parent 8c8c1b7 commit 4ddf218

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

NuGet/chromiumembeddedframework.runtime.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
"runtimes": {
33
"win-x64": {
44
"chromiumembeddedframework.runtime": {
5-
"chromiumembeddedframework.runtime.win-x64": "121.2.14"
5+
"chromiumembeddedframework.runtime.win-x64": "132.3.1"
66
}
77
},
88
"win-x86": {
99
"chromiumembeddedframework.runtime": {
10-
"chromiumembeddedframework.runtime.win-x86": "121.2.14"
10+
"chromiumembeddedframework.runtime.win-x86": "132.3.1"
1111
}
1212
},
1313
"win-arm64": {
1414
"chromiumembeddedframework.runtime": {
15-
"chromiumembeddedframework.runtime.win-arm64": "121.2.14"
15+
"chromiumembeddedframework.runtime.win-arm64": "132.3.1"
1616
}
1717
},
1818
}

build.ps1

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ param(
1414
[string] $CefBinaryDir = "../cefsource/chromium/src/cef/binary_distrib/",
1515

1616
[Parameter(Position = 3)]
17-
$CefVersion = "121.2.14+ga44b59f+chromium-121.0.6167.75",
17+
$CefVersion = "132.3.1+g144febe+chromium-132.0.6834.83",
1818

1919
[ValidateSet("tar.bz2","zip","7z")]
2020
[Parameter(Position = 4)]
@@ -524,10 +524,13 @@ function DownloadCefBinaryAndUnzip()
524524
Die "Build Unavailable - $arch has no files for version $CefVersion"
525525
}
526526

527-
#TODO Duplication
528-
$CefFileName = ($CefWinCefVersion.files | Where-Object {$_.type -eq "standard"}).name
529-
$CefFileHash = ($CefWinCefVersion.files | Where-Object {$_.type -eq "standard"}).sha1
530-
$CefFileSize = (($CefWinCefVersion.files | Where-Object {$_.type -eq "standard"}).size /1MB)
527+
# CEF sometimes has multiple builds of the same version with one being Stable and one being Beta
528+
# We'll take the newest build in that case
529+
$CefStandardFiles = ($CefWinCefVersion.files | Where-Object {$_.type -eq "standard"} | Sort-Object -Descending -Property last_modified)[0];
530+
531+
$CefFileName = $CefStandardFiles.name
532+
$CefFileHash = $CefStandardFiles.sha1
533+
$CefFileSize = $CefStandardFiles.size /1MB
531534

532535
$LocalFile = Join-Path $WorkingDir $CefFileName
533536
if (-not (Test-Path $LocalFile))

0 commit comments

Comments
 (0)