fixed mac resource path location

This commit is contained in:
milad 2019-12-04 09:56:54 -08:00
parent 2d6f18fb99
commit 83285aa414

View file

@ -45,7 +45,7 @@ private:
#ifdef Q_OS_WIN
const QString SCREENSHARE_EXE_PATH{ PathUtils::projectRootPath() + "/screenshare/hifi-screenshare-win32-x64/hifi-screenshare.exe" };
#elif defined(Q_OS_MAC)
const QString SCREENSHARE_EXE_PATH{ PathUtils::resourcesPath() + "/../hifi-screenshare.app" };
const QString SCREENSHARE_EXE_PATH{ QCoreApplication::applicationDirPath + "/../Resources/hifi-screenshare.app" };
#else
// This path won't exist on other platforms, so the Screenshare Scripting Interface will exit early when invoked.
const QString SCREENSHARE_EXE_PATH{ PathUtils::projectRootPath() + "/screenshare/hifi-screenshare-other-os/hifi-screenshare" };
@ -54,7 +54,7 @@ private:
#ifdef Q_OS_WIN
const QString SCREENSHARE_EXE_PATH{ QCoreApplication::applicationDirPath() + "/hifi-screenshare/hifi-screenshare.exe" };
#elif defined(Q_OS_MAC)
const QString SCREENSHARE_EXE_PATH{ PathUtils::resourcesPath() + "/../hifi-screenshare.app" };
const QString SCREENSHARE_EXE_PATH{ QCoreApplication::applicationDirPath + "/../Resources/hifi-screenshare.app" };
#else
// This path won't exist on other platforms, so the Screenshare Scripting Interface will exit early when invoked.
const QString SCREENSHARE_EXE_PATH{ QCoreApplication::applicationDirPath() + "/hifi-screenshare/hifi-screenshare" };