媒体播放组件,录音组件
This commit is contained in:
lincube
2026-03-03 18:26:29 +08:00
parent 478ed115a1
commit 094745122e
42 changed files with 4661 additions and 1093 deletions

View File

@@ -89,8 +89,33 @@ function Remove-LibVlcForOtherArch {
}
foreach ($dir in $dirsToDelete) {
if (Test-Path -LiteralPath $dir) {
if (-not (Test-Path -LiteralPath $dir)) {
continue
}
$pruned = $false
try {
[System.IO.Directory]::Delete($dir, $true)
$pruned = $true
} catch {
if (-not (Test-Path -LiteralPath $dir)) {
$pruned = $true
} else {
Write-Warning "Prune retry for '$dir': $($_.Exception.Message)"
try {
Remove-Item -LiteralPath $dir -Recurse -Force -ErrorAction Stop
$pruned = $true
} catch {
if (-not (Test-Path -LiteralPath $dir)) {
$pruned = $true
} else {
throw "Failed to prune '$dir': $($_.Exception.Message)"
}
}
}
}
if ($pruned) {
Write-Host "Pruned: $dir"
}
}