Skip to content

Commit 7822aec

Browse files
committed
For local builds always remove the platform folder and extract archive
1 parent 4ddf218 commit 7822aec

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

build.ps1

+7-3
Original file line numberDiff line numberDiff line change
@@ -586,11 +586,15 @@ function CopyFromLocalCefBuild()
586586
Copy-Item ($CefBinaryDir+$CefFileName) $LocalFile
587587
Write-Diagnostic "Copy of $CefFileName complete"
588588
}
589-
590-
if (-not (Test-Path (Join-Path $Platform.Folder '\include\cef_version.h')))
589+
590+
Write-Diagnostic "Removing $Platform.Folder"
591+
# Always remove directory if exists when copying from local
592+
if (Test-Path $Platform.Folder)
591593
{
592-
ExtractArchive $LocalFile $CefFileName $Platform.Folder
594+
Remove-Item $Platform.Folder -Recurse | Out-Null
593595
}
596+
597+
ExtractArchive $LocalFile $CefFileName $Platform.Folder
594598
}
595599

596600
try

0 commit comments

Comments
 (0)