Mercurial > trustbridge
diff ui/createinstallerdialog.cpp @ 537:522b4e28c073
Use windows argument format for nsis on windows
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Tue, 29 Apr 2014 17:52:19 +0000 |
parents | f6371e9c959a |
children | 0290adbdc380 |
line wrap: on
line diff
--- a/ui/createinstallerdialog.cpp Tue Apr 29 16:57:04 2014 +0000 +++ b/ui/createinstallerdialog.cpp Tue Apr 29 17:52:19 2014 +0000 @@ -206,11 +206,19 @@ mNSISProc.setProgram("makensis"); mNSISProc.setProcessChannelMode(QProcess::MergedChannels); mNSISProc.setWorkingDirectory(outDir.path()); +#ifdef Q_OS_WIN + arguments << QString::fromLatin1("/Dfiles_dir=") + binDir.path() + "/windows"; + foreach (const QString &key, keys) { + arguments << QString::fromLatin1("/D%1=%2").arg(key, + options.value(key, QString()).toString()); + } +#else arguments << QString::fromLatin1("-Dfiles_dir=") + binDir.path() + "/windows"; foreach (const QString &key, keys) { arguments << QString::fromLatin1("-D%1=%2").arg(key, options.value(key, QString()).toString()); } +#endif arguments << binDir.path() + "/trustbridge.nsi";