mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Ref T103, not all executables on MacOSX are bundles
This commit is contained in:
committed by
Mathew Sutcliffe
parent
c0b78bee6f
commit
f53a64396a
@@ -51,9 +51,14 @@ namespace BlackMisc
|
||||
Q_ASSERT_X(CBuildConfig::isKnownExecutableName(executable), Q_FUNC_INFO, "Unknown exectuable");
|
||||
|
||||
QString s = CFileUtils::appendFilePaths(CDirectoryUtils::binDirectory(), executable);
|
||||
if (CDirectoryUtils::isMacOSXAppBundle())
|
||||
if (CBuildConfig::isRunningOnMacOSXPlatform())
|
||||
{
|
||||
s += QLatin1String(".app/Contents/MacOS/") + executable;
|
||||
// Mac OSX bundle may or may not be a bundle
|
||||
const QDir dir(s + QLatin1String(".app/Contents/MacOS"));
|
||||
if (dir.exists())
|
||||
{
|
||||
s += QLatin1String(".app/Contents/MacOS/") + executable;
|
||||
}
|
||||
}
|
||||
else if (CBuildConfig::isRunningOnWindowsNtPlatform())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user