From 7822aecc63166482a9fd425391436a38828a2df7 Mon Sep 17 00:00:00 2001 From: amaitland <307872+amaitland@users.noreply.github.com> Date: Sat, 25 Jan 2025 19:46:47 +1000 Subject: [PATCH] For local builds always remove the platform folder and extract archive --- build.ps1 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/build.ps1 b/build.ps1 index d40c59f..dc3857c 100644 --- a/build.ps1 +++ b/build.ps1 @@ -586,11 +586,15 @@ function CopyFromLocalCefBuild() Copy-Item ($CefBinaryDir+$CefFileName) $LocalFile Write-Diagnostic "Copy of $CefFileName complete" } - - if (-not (Test-Path (Join-Path $Platform.Folder '\include\cef_version.h'))) + + Write-Diagnostic "Removing $Platform.Folder" + # Always remove directory if exists when copying from local + if (Test-Path $Platform.Folder) { - ExtractArchive $LocalFile $CefFileName $Platform.Folder + Remove-Item $Platform.Folder -Recurse | Out-Null } + + ExtractArchive $LocalFile $CefFileName $Platform.Folder } try