Mercurial > trustbridge
comparison ui/createinstallerdialog.cpp @ 539:81d6657757f3
Provide path_sep as a variable to make it possible to reuse filelist
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Tue, 29 Apr 2014 18:06:44 +0000 |
parents | 0290adbdc380 |
children | 1cddf87f8f83 |
comparison
equal
deleted
inserted
replaced
538:0290adbdc380 | 539:81d6657757f3 |
---|---|
206 mNSISProc.setProgram("makensis"); | 206 mNSISProc.setProgram("makensis"); |
207 mNSISProc.setProcessChannelMode(QProcess::MergedChannels); | 207 mNSISProc.setProcessChannelMode(QProcess::MergedChannels); |
208 mNSISProc.setWorkingDirectory(outDir.path()); | 208 mNSISProc.setWorkingDirectory(outDir.path()); |
209 #ifdef Q_OS_WIN | 209 #ifdef Q_OS_WIN |
210 arguments << QString::fromLatin1("/Dfiles_dir=") + binDir.path().replace("/", "\\") + "\\windows"; | 210 arguments << QString::fromLatin1("/Dfiles_dir=") + binDir.path().replace("/", "\\") + "\\windows"; |
211 arguments << "/Dpath_sep=\\" | |
211 foreach (const QString &key, keys) { | 212 foreach (const QString &key, keys) { |
212 arguments << QString::fromLatin1("/D%1=%2").arg(key, | 213 arguments << QString::fromLatin1("/D%1=%2").arg(key, |
213 options.value(key, QString()).toString()); | 214 options.value(key, QString()).toString()); |
214 } | 215 } |
215 #else | 216 #else |
216 arguments << QString::fromLatin1("-Dfiles_dir=") + binDir.path() + "/windows"; | 217 arguments << QString::fromLatin1("-Dfiles_dir=") + binDir.path() + "/windows"; |
217 foreach (const QString &key, keys) { | 218 foreach (const QString &key, keys) { |
218 arguments << QString::fromLatin1("-D%1=%2").arg(key, | 219 arguments << QString::fromLatin1("-D%1=%2").arg(key, |
219 options.value(key, QString()).toString()); | 220 options.value(key, QString()).toString()); |
220 } | 221 } |
222 arguments << "-Dpath_sep=/" | |
221 #endif | 223 #endif |
222 | 224 |
223 arguments << binDir.path() + "/trustbridge.nsi"; | 225 arguments << binDir.path() + "/trustbridge.nsi"; |
224 | 226 |
225 qDebug() << "Starting makensis with arguments: " << arguments; | 227 qDebug() << "Starting makensis with arguments: " << arguments; |