Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

Let go of the 7-Zip unpack folder once emulated 7-Zip releases it

KnifeLemon22b835cc687b
diff --git a/build/fetch-engines.ps1 b/build/fetch-engines.ps1
index 83685bc3..30e8f705 100644
--- a/build/fetch-engines.ps1
+++ b/build/fetch-engines.ps1
@@ -278,13 +278,20 @@ if ('7zip' -in $selected) {
foreach ($name in $files) {
if (-not (Test-Path (Join-Path $target $name))) { throw "$name not found in the 7-Zip ARM64 installer." }
}
+ # Under x64 emulation 7z.dll stays locked for a moment after 7z.exe exits; the next run clears the rest.
+ foreach ($attempt in 1..10) {
+ Remove-Item $tmp -Recurse -Force -ErrorAction SilentlyContinue
+ if (-not (Test-Path $tmp)) { break }
+ Start-Sleep -Seconds 1
+ }
+ if (Test-Path $tmp) { Write-Warning "Could not remove $tmp yet." }
}
else {
foreach ($name in $files) {
Copy-Item (Join-Path $exe.DirectoryName $name) $target
}
+ Remove-Item $tmp -Recurse -Force
}
- Remove-Item $tmp -Recurse -Force
}
if ('ffmpeg' -in $selected) {