Skip to content

Commit 4b43bc5

Browse files
committed
Fix deployment of texttospeech plugins
Thanks @julonexus for the hint! Fixes #70.
1 parent 230cdb3 commit 4b43bc5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/deployers/TextToSpeechPluginsDeployer.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ bool TextToSpeechPluginsDeployer::deploy() {
2525
continue;
2626
}
2727

28-
if (!appDir.deployLibrary(*i, appDir.path() / "usr/plugins/" / pluginsName))
28+
// terminate with a "/" to make sure the deployer will deploy the file into the target directory properly
29+
// has to be cast to string, unfortunately, as boost::filesystem doesn't allow for adding a terminating /
30+
const auto targetPath = (appDir.path() / "usr/plugins/" / pluginsName).string() + "/";
31+
if (!appDir.deployLibrary(*i, targetPath))
2932
return false;
3033
}
3134

0 commit comments

Comments
 (0)