Skip to content

Commit

Permalink
Fix windeployqt for Qt 5.14.2
Browse files Browse the repository at this point in the history
  • Loading branch information
vadi2 committed Jun 1, 2021
1 parent 817a8a2 commit b8d1bd5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion CI/appveyor.after_success.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@ if ("$Env:APPVEYOR_REPO_NAME" -ne "Mudlet/Mudlet") {
}

cd "$Env:APPVEYOR_BUILD_FOLDER\src\release"
windeployqt.exe --release mudlet.exe

$Script:QtVersionRegex = [regex]'\\([\d\.]+)\\mingw'
$Script:QtVersion = $QtVersionRegex.Match($Env:QT_BASE_DIR).Groups[1].Value
if ([version]$Script:QtVersion -ge [version]'5.14.0') {
windeployqt.exe mudlet.exe
}
else {
windeployqt.exe --release mudlet.exe
}

. "$Env:APPVEYOR_BUILD_FOLDER\CI\copy-non-qt-win-dependencies.ps1"

Remove-Item * -include *.cpp, *.o
Expand Down

0 comments on commit b8d1bd5

Please sign in to comment.