File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -347,11 +347,14 @@ jobs:
347347 if (-not $upx) { Write-Error "upx not found"; exit 1 }
348348
349349 # Compress EXE and DLLs in dist
350- # Avoid compressing Qt plugins (especially platform plugins) , which can break Qt's plugin metadata loader.
350+ # Avoid compressing Qt plugins/modules and QML imports , which can break Qt's plugin metadata loader.
351351 Get-ChildItem dist -Recurse -Include *.exe,*.dll |
352352 Where-Object {
353353 $_.FullName -notmatch '\\qt_plugins\\' -and
354- $_.FullName -notmatch '\\platforms\\'
354+ $_.FullName -notmatch '\\platforms\\' -and
355+ $_.FullName -notmatch '\\plugins\\' -and
356+ $_.FullName -notmatch '\\Qt(Qml|Quick|Multimedia|Network|OpenGL|Sql|Svg|Core|Gui|Labs|QmlModels|QmlWorkerScript|QmlXmlListModel)?\\' -and
357+ $_.FullName -notmatch '\\qml\\'
355358 } |
356359 ForEach-Object {
357360 & $upx -9 --lzma --force $_.FullName
You can’t perform that action at this time.
0 commit comments