We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a29e02 commit d0cafb4Copy full SHA for d0cafb4
src/deployers/BasicPluginsDeployer.cpp
@@ -38,8 +38,13 @@ bool BasicPluginsDeployer::deployStandardQtPlugins(const std::vector<std::string
38
{
39
for (const auto &pluginName : plugins) {
40
ldLog() << "Deploying Qt" << pluginName << "plugins" << std::endl;
41
+ fs::path pluginSubDir = pluginName;
42
+ // add a trailing slash, so it is used as a destination directory, not a file.
43
+ if (pluginSubDir.has_filename()) {
44
+ pluginSubDir += "/";
45
+ }
46
for (fs::directory_iterator i(qtPluginsPath / pluginName); i != fs::directory_iterator(); ++i) {
- if (!appDir.deployLibrary(*i, appDir.path() / "usr/plugins" / pluginName))
47
+ if (!appDir.deployLibrary(*i, appDir.path() / "usr/plugins" / pluginSubDir))
48
return false;
49
}
50
0 commit comments