File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,13 +72,17 @@ jobs:
7272 New-Item -ItemType Directory -Force "$package/lib" | Out-Null
7373 New-Item -ItemType Directory -Force "$package/plugins/platforms" | Out-Null
7474
75- $qtLibDir = Join-Path $env:Qt6_DIR "../../lib"
76- $qtPluginDir = Join-Path $env:Qt6_DIR "../../plugins"
75+ $qtLibDir = qmake -query QT_INSTALL_LIBS
76+ $qtPluginDir = qmake -query QT_INSTALL_PLUGINS
7777
78- Copy-Item "$qtLibDir/libQt6Core.so*" "$package/lib"
79- Copy-Item "$qtLibDir/libQt6Gui.so*" "$package/lib"
80- Copy-Item "$qtLibDir/libQt6Widgets.so*" "$package/lib"
81- Copy-Item "$qtPluginDir/platforms/libqxcb.so" "$package/plugins/platforms"
78+ if (-not (Test-Path $qtLibDir) -or -not (Test-Path $qtPluginDir)) {
79+ throw "Could not resolve Qt runtime paths. lib='$qtLibDir' plugins='$qtPluginDir'"
80+ }
81+
82+ Get-ChildItem $qtLibDir -Filter "libQt6Core.so*" | Copy-Item -Destination "$package/lib"
83+ Get-ChildItem $qtLibDir -Filter "libQt6Gui.so*" | Copy-Item -Destination "$package/lib"
84+ Get-ChildItem $qtLibDir -Filter "libQt6Widgets.so*" | Copy-Item -Destination "$package/lib"
85+ Copy-Item (Join-Path $qtPluginDir "platforms/libqxcb.so") "$package/plugins/platforms"
8286
8387 @"
8488 #!/usr/bin/env bash
You can’t perform that action at this time.
0 commit comments