feat: update auto reply and packaging

This commit is contained in:
ly1213
2026-06-29 17:44:22 +08:00
parent 1ca66dc0af
commit 2d5ee7f08d
19 changed files with 1147 additions and 227 deletions

View File

@@ -180,7 +180,12 @@ if (-not (Get-Command gcc -ErrorAction SilentlyContinue)) {
if ($pdftoppm) {
Write-Host "==> Copying PDF renderer"
Copy-RequiredFile -Source $pdftoppm.Source -Destination (Join-Path $binDir "tools\pdf\pdftoppm.exe")
$pdfToolDir = Join-Path $binDir "tools\pdf"
Copy-RequiredFile -Source $pdftoppm.Source -Destination (Join-Path $pdfToolDir "pdftoppm.exe")
$pdftoppmDir = Split-Path -Parent $pdftoppm.Source
Get-ChildItem -LiteralPath $pdftoppmDir -Filter "*.dll" -File | ForEach-Object {
Copy-RequiredFile -Source $_.FullName -Destination (Join-Path $pdfToolDir $_.Name)
}
} else {
Write-Warning "pdftoppm.exe not found; scanned PDF OCR fallback will be unavailable in this build."
}
@@ -228,7 +233,7 @@ if ($silkBuilt -and (Test-Path -LiteralPath $silkDecoderOut)) {
Write-Warning "silkdecode.exe not bundled (gcc unavailable); voice transcoding disabled in this installer."
}
if (Test-Path -LiteralPath (Join-Path $binDir "tools\pdf\pdftoppm.exe")) {
Copy-RequiredFile -Source (Join-Path $binDir "tools\pdf\pdftoppm.exe") -Destination (Join-Path $runtimeDir "tools\pdf\pdftoppm.exe")
Copy-Item -LiteralPath (Join-Path $binDir "tools\pdf") -Destination (Join-Path $runtimeDir "tools") -Recurse -Force
}
Copy-RequiredFile -Source (Join-Path $binDir "Helper_4.1.33.6009.dll") -Destination (Join-Path $runtimeDir "Helper_4.1.33.6009.dll")
Copy-RequiredFile -Source (Join-Path $binDir "Loader_4.1.33.6009.dll") -Destination (Join-Path $runtimeDir "Loader_4.1.33.6009.dll")