Skip to content

Commit

Permalink
Make sure destination is used as a directory. Fixes #184
Browse files Browse the repository at this point in the history
  • Loading branch information
Kjell Morgenstern authored and TheAssassin committed Aug 5, 2024
1 parent 0a29e02 commit 24f169a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/deployers/BasicPluginsDeployer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ bool BasicPluginsDeployer::deployStandardQtPlugins(const std::vector<std::string
for (const auto &pluginName : plugins) {
ldLog() << "Deploying Qt" << pluginName << "plugins" << std::endl;
for (fs::directory_iterator i(qtPluginsPath / pluginName); i != fs::directory_iterator(); ++i) {
if (!appDir.deployLibrary(*i, appDir.path() / "usr/plugins" / pluginName))
// add a trailing slash, so pluginName is used as a destination directory, not a file.
if (!appDir.deployLibrary(*i, appDir.path() / "usr/plugins" / pluginName / ""))
return false;
}
}
Expand Down

0 comments on commit 24f169a

Please sign in to comment.