Fix deployment of xcbglintegrations plugins

The destination didn't end with a slash, so, like cp, liblinuxdeploy
just created a file with that name and overwrote it with every new
plugin.
This commit is contained in:
TheAssassin
2019-02-23 14:00:48 +01:00
parent 95d9790923
commit 72014cfbec
+3 -2
View File
@@ -70,7 +70,8 @@ bool deployPlatformPlugins(appdir::AppDir &appDir, const bf::path &qtPluginsPath
// little helper called by other integration plugins
bool deployIntegrationPlugins(appdir::AppDir& appDir, const bf::path& qtPluginsPath, const std::initializer_list<bf::path>& subDirs) {
for (const bf::path& subDir : subDirs) {
auto dir = qtPluginsPath / subDir;
// make sure the path ends with a / so that liblinuxdeploy recognize the destination as a directory
auto dir = qtPluginsPath / subDir / "/";
if (!bf::is_directory(dir)) {
ldLog() << "Directory" << dir << "doesn't exist, skipping deployment" << std::endl;
@@ -94,7 +95,7 @@ bool deployIntegrationPlugins(appdir::AppDir& appDir, const bf::path& qtPluginsP
bool deployXcbglIntegrationPlugins(appdir::AppDir& appDir, const bf::path& qtPluginsPath) {
ldLog() << "Deploying xcb-gl integrations" << std::endl;
return deployIntegrationPlugins(appDir, qtPluginsPath, {"xcbglintegrations"});
return deployIntegrationPlugins(appDir, qtPluginsPath, {"xcbglintegrations/"});
}
bool deploySvgPlugins(appdir::AppDir &appDir, const bf::path &qtPluginsPath) {