Make installers work with mac/windows for big backend change.

This commit is contained in:
Adam Treat
2023-06-05 09:23:17 -04:00
parent 2e5b114364
commit 812b2f4b29
5 changed files with 46 additions and 21 deletions

View File

@@ -25,6 +25,13 @@ LLM::LLM()
, m_serverEnabled(false)
, m_compatHardware(true)
{
QString llmodelSearchPaths = QCoreApplication::applicationDirPath();
#if defined(Q_OS_MAC)
llmodelSearchPaths += ";" + QCoreApplication::applicationDirPath() + "../../../";
llmodelSearchPaths += ";" + QCoreApplication::applicationDirPath() + "../Frameworks/";
#endif
LLModel::setImplementationsSearchPath(llmodelSearchPaths.toStdString());
connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit,
this, &LLM::aboutToQuit);
connect(this, &LLM::serverEnabledChanged,