Skip to content

Commit ecfe984

Browse files
committed
Find Linux xcb Qt platform plugin recursively
1 parent 8a83c6d commit ecfe984

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/viewer-qt.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,12 @@ jobs:
100100
}
101101
}
102102
103-
Copy-Item -LiteralPath (Join-Path $qtPluginDir "platforms/libqxcb.so") -Destination "$package/plugins/platforms" -Force
103+
$xcbPlugin = Get-ChildItem $qtPluginDir -Recurse -File -Filter "libqxcb.so" | Select-Object -First 1
104+
if (-not $xcbPlugin) {
105+
throw "Missing libqxcb.so under '$qtPluginDir'"
106+
}
107+
108+
Copy-Item -LiteralPath $xcbPlugin.FullName -Destination "$package/plugins/platforms" -Force
104109
105110
@"
106111
#!/usr/bin/env bash

0 commit comments

Comments
 (0)