Fixed: Also rename executable under Linux
This commit is contained in:
parent
99d88ab704
commit
869b913fab
1 changed files with 5 additions and 12 deletions
|
@ -725,23 +725,18 @@ void COperationDialog::copyInstaller()
|
||||||
|
|
||||||
m_currentOperation = tr("Copying installer to new location...");
|
m_currentOperation = tr("Copying installer to new location...");
|
||||||
|
|
||||||
QString destinationDirectory = config->getInstallationDirectory();
|
|
||||||
|
|
||||||
// rename old client to installer
|
|
||||||
|
|
||||||
QString oldInstallerFullPath = config->getInstallerCurrentFilePath();
|
|
||||||
QString newInstallerFullPath = config->getInstallerInstalledFilePath();
|
QString newInstallerFullPath = config->getInstallerInstalledFilePath();
|
||||||
|
|
||||||
if (!newInstallerFullPath.isEmpty())
|
if (!newInstallerFullPath.isEmpty())
|
||||||
{
|
{
|
||||||
QString srcDir = config->getSrcServerDirectory();
|
QString destinationDirectory = config->getInstallationDirectory();
|
||||||
|
QString oldInstallerFullPath = config->getInstallerCurrentFilePath();
|
||||||
if (srcDir.isEmpty()) srcDir = config->getInstallerCurrentDirPath();
|
QString srcDir = config->getInstallerCurrentDirPath();
|
||||||
|
|
||||||
// always copy new installers
|
// always copy new installers
|
||||||
CFilesCopier copier(this);
|
CFilesCopier copier(this);
|
||||||
copier.setIncludeFilter(config->getInstallerRequiredFiles());
|
copier.setIncludeFilter(config->getInstallerRequiredFiles());
|
||||||
#ifdef Q_OS_WIN32
|
#ifndef Q_OS_MAC
|
||||||
copier.addFile(oldInstallerFullPath);
|
copier.addFile(oldInstallerFullPath);
|
||||||
#endif
|
#endif
|
||||||
copier.setSourceDirectory(srcDir);
|
copier.setSourceDirectory(srcDir);
|
||||||
|
@ -749,9 +744,7 @@ void COperationDialog::copyInstaller()
|
||||||
|
|
||||||
if (!copier.exec()) return;
|
if (!copier.exec()) return;
|
||||||
|
|
||||||
#ifdef Q_OS_WIN32
|
#ifndef Q_OS_MAC
|
||||||
// only happens under Windows in Debug or when migrating
|
|
||||||
|
|
||||||
// copied file
|
// copied file
|
||||||
oldInstallerFullPath = config->getInstallationDirectory() + "/" + QFileInfo(oldInstallerFullPath).fileName();
|
oldInstallerFullPath = config->getInstallationDirectory() + "/" + QFileInfo(oldInstallerFullPath).fileName();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue