mitchcapper / CefSharpDockerfiles

Automated chrome cef building and cefsharp building with docker and build scripts
33 stars 10 forks source link

Build failed "Not able to find win32 file as expected" #4

Closed jpboyer closed 4 years ago

jpboyer commented 5 years ago

Hi there, I successfully build cefsharp 67 without any issue with these settings : $VAR_CHROME_BRANCH="3396"; $VAR_CEFSHARP_VERSION="67.0.90"; $VAR_CEFSHARP_BRANCH="cefsharp/67"; $VAR_BASE_DOCKER_FILE="mcr.microsoft.com/dotnet/framework/runtime:4.7.2-windowsservercore-ltsc2016"; $VAR_DUAL_BUILD="0"; $VAR_GN_DEFINES="is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome"; $VAR_GYP_DEFINES=""; $VAR_CEF_BUILD_ONLY=$false; $VAR_CEF_USE_BINARY_PATH=""; $VAR_CEF_BINARY_EXT="zip"; $VAR_CEF_SAVE_SOURCES="0"; $VAR_CEF_VERSION_STR="auto"; $VAR_HYPERV_MEMORY_ADD="--memory=30g";

Now I try to build v 73 but it fails almost at the end : Creating zip archive for cef_binary_73.1.13+g6e3c989+chromium-73.0.3683.75_windows64... Creating zip archive for cef_binary_73.1.13+g6e3c989+chromium-73.0.3683.75_windows64_release_symbols... Not able to find win32 file as expected At C:\code\cef_build.ps1:87 char:2

The command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; c:/code/cef_bu ild.ps1' returned a non-zero code: 1 Caught an exception: Process docker build --memory=30g --build-arg CEF_SAVE_SOURCES="0" --build-arg BINARY_EXT="zip" --bui ld-arg DUAL_BUILD="0" --build-arg GN_DEFINES="is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome" --bui ld-arg GYP_DEFINES="" --build-arg CHROME_BRANCH="3683" -f Dockerfile_cef -t cef . exited with non zero code: 1 aborting! Exception Type: System.Management.Automation.RuntimeException Stack Trace: at RunProc, D:\CefSharpDockerfiles-master\functions.ps1: line 82 at , D:\CefSharpDockerfiles-master\build.ps1: line 71 at , : line 1

Here is my versions.ps1 : $VAR_CHROME_BRANCH="3683"; $VAR_CEFSHARP_VERSION="73.1.130"; $VAR_CEFSHARP_BRANCH="cefsharp/73"; $VAR_BASE_DOCKER_FILE="mcr.microsoft.com/dotnet/framework/runtime:4.7.2-windowsservercore-ltsc2016"; $VAR_DUAL_BUILD="0"; $VAR_GN_DEFINES="is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome"; $VAR_GYP_DEFINES=""; $VAR_CEF_BUILD_ONLY=$false; $VAR_CEF_USE_BINARY_PATH=""; $VAR_CEF_BINARY_EXT="zip"; $VAR_CEF_SAVE_SOURCES="0"; $VAR_CEF_VERSION_STR="auto"; $VAR_HYPERV_MEMORY_ADD="--memory=30g";

jpboyer commented 4 years ago

Finally found and fix the issue : in cef_build.ps1 line 86 and 90 if (@(dir -Filter "cef_binary_3.*_windows32.$env:BINARY_EXT" "c:/code/chromium/src/cef/binary_distrib/").Count -ne 1){ throw "Not able to find win32 file as expected"; } if (@(dir -Filter "cef_binary_3.*_windows64.$env:BINARY_EXT" "c:/code/chromium/src/cef/binary_distrib/").Count -ne 1){ throw "Not able to find win64 file as expected"; }

replace cef_binary_3.*_windows by cef_binary_*_windows

build again and everything run fine now.