diff ui/createinstallerdialog.cpp @ 1121:a162f4cbba75

(issue54) Handle plugin dir in create-dist-package and on installer creation.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 17 Sep 2014 10:57:54 +0200
parents 01128d63226d
children 2a1206932f53
line wrap: on
line diff
--- a/ui/createinstallerdialog.cpp	Wed Sep 17 09:15:47 2014 +0200
+++ b/ui/createinstallerdialog.cpp	Wed Sep 17 10:57:54 2014 +0200
@@ -294,6 +294,8 @@
     mNSISProc.setWorkingDirectory(outDir.path());
 #ifdef Q_OS_WIN
     arguments << QString::fromLatin1("/Dfiles_dir=") + mCurrentWorkingDir->path().replace("/", "\\");
+    QString resourcedir = binDir.path() + "/resources";
+    arguments << QString::fromLatin1("/Dplugin_dir=") + resourcedir.replace("/", "\\");
     arguments << "/Dpath_sep=\\";
     foreach (const QString &key, keys) {
         QString value = options.value(key, QString()).toString();
@@ -306,6 +308,7 @@
     arguments << QString(binDir.path() + "/trustbridge.nsi").replace("/", "\\");
 #else
     arguments << QString::fromLatin1("-Dfiles_dir=") + mCurrentWorkingDir->path();
+    arguments << QString::fromLatin1("-Dplugin_dir=") + binDir.path() + "/resources";
     arguments << "-Dpath_sep=/";
     foreach (const QString &key, keys) {
         QString value = options.value(key, QString()).toString();

http://wald.intevation.org/projects/trustbridge/