1
0
Fork 0

chore(packaging): retry layout cleanup gracefully

This commit is contained in:
Yun Chan 2026-09-03 17:14:09 +09:00
parent 1e7b0e1bcf
commit 7e2e4572d0
2 changed files with 11 additions and 1 deletions

View file

@ -152,7 +152,13 @@ if (-not (Test-Path $shellDll)) { throw "Shell DLL 산출물 없음: $shellDll"
# ---- 3) Layout 디렉토리 ----
Write-Host ''
Write-Host '[3/5] Layout 디렉토리 구성'
if (Test-Path $layoutDir) { Remove-Item $layoutDir -Recurse -Force }
if (Test-Path $layoutDir) {
try { Remove-Item $layoutDir -Recurse -Force -ErrorAction Stop }
catch {
Start-Sleep -Milliseconds 600
Remove-Item $layoutDir -Recurse -Force -ErrorAction SilentlyContinue
}
}
New-Item -ItemType Directory -Path $layoutDir | Out-Null
Copy-Item -Path (Join-Path $publishOut '*') -Destination $layoutDir -Recurse -Force