forked from qt-creator/qt-creator
macOS: Do not deploy some plugins and their dependencies
macdeployqt deploys all plugins of a kind, like all tls or sql backends. We only want the securetransport and sqlite ones from these, and since Qt 6.3 now also builds the openssl backend, and the postgres backend has a dependency on openssl that gets shipped, we end up with issues (openssl backend being loaded which finds and loads openssl from postgres). So clean these things up after macdeployqt. Change-Id: Iccbe4c422a4cce3fd4da0af5f6e2595f85848ece Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -174,3 +174,19 @@ if [ ! -d "$app_path/Contents/Frameworks/QtCore.framework" ]; then
|
||||
"$clangbackendArgument" || exit 1
|
||||
|
||||
fi
|
||||
|
||||
# clean up after macdeployqt
|
||||
# it deploys some plugins (and libs for these) that interfere with what we want
|
||||
echo "Cleaning up after macdeployqt..."
|
||||
toRemove=(\
|
||||
"Contents/PlugIns/tls/libqopensslbackend.dylib" \
|
||||
"Contents/PlugIns/sqldrivers/libqsqlpsql.dylib" \
|
||||
"Contents/PlugIns/sqldrivers/libqsqlodbc.dylib" \
|
||||
"Contents/Frameworks/libpq.*dylib" \
|
||||
"Contents/Frameworks/libssl.*dylib" \
|
||||
"Contents/Frameworks/libcrypto.*dylib" \
|
||||
)
|
||||
for f in "${toRemove[@]}"; do
|
||||
echo "- removing \"$app_path/$f\""
|
||||
rm "$app_path"/$f 2> /dev/null; done
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user