Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

skip existing windows cli runtime dlls

louis03019532a6872e4594
diff --git a/.github/workflows/windows-integration-test.yml b/.github/workflows/windows-integration-test.yml
index b89b276c5..945cf033c 100644
--- a/.github/workflows/windows-integration-test.yml
+++ b/.github/workflows/windows-integration-test.yml
@@ -123,21 +123,22 @@ jobs:
".\target\release\screenpipe.exe"
}
$binDir = Split-Path $exePath
- # Copy onnxruntime.dll next to the binary
+ function Copy-DllIfMissing($source, $destinationDirectory) {
+ $destination = Join-Path $destinationDirectory (Split-Path $source -Leaf)
+ if (-not (Test-Path $destination)) {
+ Copy-Item $source $destinationDirectory -Force
+ }
+ }
+
+ # Copy runtime DLLs next to the binary unless the build already staged them.
$ortDll = "apps\screenpipe-app-tauri\src-tauri\onnxruntime-win-x64-1.22.0\lib\onnxruntime.dll"
if (Test-Path $ortDll) {
- $ortDestination = Join-Path $binDir (Split-Path $ortDll -Leaf)
- if ([System.IO.Path]::GetFullPath($ortDll) -ne [System.IO.Path]::GetFullPath($ortDestination)) {
- Copy-Item $ortDll $binDir -Force
- }
+ Copy-DllIfMissing $ortDll $binDir
}
$openblasBin = "apps\screenpipe-app-tauri\src-tauri\openblas\bin"
if (Test-Path $openblasBin) {
Get-ChildItem "$openblasBin\*.dll" | ForEach-Object {
- $openblasDestination = Join-Path $binDir $_.Name
- if ([System.IO.Path]::GetFullPath($_.FullName) -ne [System.IO.Path]::GetFullPath($openblasDestination)) {
- Copy-Item $_.FullName $binDir -Force
- }
+ Copy-DllIfMissing $_.FullName $binDir
}
}
$process = Start-Process -FilePath $exePath -ArgumentList "--debug" -PassThru -RedirectStandardOutput "screenpipe_output.log" -RedirectStandardError "screenpipe_error.log" -NoNewWindow