chore(packaging): retry layout cleanup gracefully
This commit is contained in:
parent
1e7b0e1bcf
commit
7e2e4572d0
2 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -105,6 +105,10 @@ $publishDir = Join-Path $RootDir "publish"
|
|||
$distDir = Join-Path $RootDir "packaging/dist"
|
||||
|
||||
if (-not $DryRun) {
|
||||
# 0. 실행 중인 인스턴스 중지 (파일 잠금 방지)
|
||||
Stop-Process -Name "Everything2Everything" -Force -ErrorAction SilentlyContinue
|
||||
Start-Sleep -Milliseconds 500
|
||||
|
||||
# 1. Portable EXE Publish
|
||||
Write-Host " - Portable 바이너리 빌드 (win-x64 Release)..." -ForegroundColor Gray
|
||||
dotnet publish (Join-Path $RootDir "src/Everything2Everything.App/Everything2Everything.App.csproj") `
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue