mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Change the operating system name from OSX to MacOS everywhere
Summary: - Changed the name in all build artifacts - Everywhere in C++ Reviewers: #swift_pilot_client, kbasan Reviewed By: #swift_pilot_client, kbasan Subscribers: jenkins Maniphest Tasks: T205 Differential Revision: https://dev.swift-project.org/D69
This commit is contained in:
@@ -51,9 +51,9 @@ namespace BlackMisc
|
||||
Q_ASSERT_X(CBuildConfig::isKnownExecutableName(executable), Q_FUNC_INFO, "Unknown exectuable");
|
||||
|
||||
QString s = CFileUtils::appendFilePaths(CDirectoryUtils::binDirectory(), executable);
|
||||
if (CBuildConfig::isRunningOnMacOSXPlatform())
|
||||
if (CBuildConfig::isRunningOnMacOSPlatform())
|
||||
{
|
||||
// Mac OSX bundle may or may not be a bundle
|
||||
// MacOS bundle may or may not be a bundle
|
||||
const QDir dir(s + QLatin1String(".app/Contents/MacOS"));
|
||||
if (dir.exists())
|
||||
{
|
||||
@@ -82,9 +82,9 @@ namespace BlackMisc
|
||||
return appDir;
|
||||
}
|
||||
|
||||
bool CDirectoryUtils::isMacOSXAppBundle()
|
||||
bool CDirectoryUtils::isMacOSAppBundle()
|
||||
{
|
||||
static const bool appBundle = CBuildConfig::isRunningOnMacOSXPlatform() &&
|
||||
static const bool appBundle = CBuildConfig::isRunningOnMacOSPlatform() &&
|
||||
qApp->applicationDirPath().contains("Contents/MacOS", Qt::CaseInsensitive);
|
||||
return appBundle;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user