mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Fix launcher executable paths for Mac OS
This commit is contained in:
committed by
Mathew Sutcliffe
parent
269ecadf7d
commit
3d496c6df8
@@ -17,6 +17,7 @@
|
||||
#include "blackcore/setupreader.h"
|
||||
#include "blackmisc/network/networkutils.h"
|
||||
#include "blackmisc/dbusserver.h"
|
||||
#include "blackmisc/directoryutils.h"
|
||||
#include "blackmisc/icons.h"
|
||||
#include "blackmisc/logmessage.h"
|
||||
#include "blackmisc/loghandler.h"
|
||||
@@ -259,8 +260,13 @@ void CSwiftLauncher::startSwiftCore()
|
||||
// I set this for debug purpose only
|
||||
m_executableArgs = args;
|
||||
m_executable.clear();
|
||||
if (CBuildConfig::isRunningOnUnixPlatform()) { m_executable += "./"; }
|
||||
m_executable += CBuildConfig::swiftCoreExecutableName();
|
||||
m_executable = CFileUtils::appendFilePaths(CDirectoryUtils::applicationDirectoryPath(), CBuildConfig::swiftCoreExecutableName());
|
||||
if (CBuildConfig::isRunningOnMacOSXPlatform())
|
||||
{
|
||||
m_executable += QLatin1String(".app/Contents/MacOS/");
|
||||
m_executable += CBuildConfig::swiftCoreExecutableName();
|
||||
}
|
||||
|
||||
CLogMessage(this).info(this->getCmdLine());
|
||||
|
||||
// start
|
||||
@@ -270,16 +276,25 @@ void CSwiftLauncher::startSwiftCore()
|
||||
void CSwiftLauncher::setSwiftDataExecutable()
|
||||
{
|
||||
m_executable.clear();
|
||||
if (CBuildConfig::isRunningOnUnixPlatform()) { m_executable += "./"; }
|
||||
m_executable += CBuildConfig::swiftDataExecutableName();
|
||||
m_executable = CFileUtils::appendFilePaths(CDirectoryUtils::applicationDirectoryPath(), CBuildConfig::swiftDataExecutableName());
|
||||
if (CBuildConfig::isRunningOnMacOSXPlatform())
|
||||
{
|
||||
m_executable += QLatin1String(".app/Contents/MacOS/");
|
||||
m_executable += CBuildConfig::swiftDataExecutableName();
|
||||
}
|
||||
m_executableArgs.clear();
|
||||
}
|
||||
|
||||
bool CSwiftLauncher::setSwiftGuiExecutable()
|
||||
{
|
||||
m_executable.clear();
|
||||
if (CBuildConfig::isRunningOnUnixPlatform()) { m_executable += "./"; }
|
||||
m_executable += CBuildConfig::swiftGuiExecutableName();
|
||||
m_executable = CFileUtils::appendFilePaths(CDirectoryUtils::applicationDirectoryPath(), CBuildConfig::swiftGuiExecutableName());
|
||||
if (CBuildConfig::isRunningOnMacOSXPlatform())
|
||||
{
|
||||
m_executable += QLatin1String(".app/Contents/MacOS/");
|
||||
m_executable += CBuildConfig::swiftGuiExecutableName();
|
||||
}
|
||||
|
||||
QStringList args
|
||||
{
|
||||
"--core", CoreModes::coreModeToString(getCoreMode()),
|
||||
|
||||
Reference in New Issue
Block a user