fix: let jars be found from inside build dir for debug builds

debug bug builds run form inside the build dir before they are bundled can't find the jars

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers 2023-01-23 18:36:58 -07:00 committed by GitHub
parent 16477a8f6c
commit c45fa016c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1547,7 +1547,10 @@ QString Application::getJarPath(QString jarFile)
FS::PathCombine(m_rootPath, "share/" + BuildConfig.LAUNCHER_APP_BINARY_NAME),
#endif
FS::PathCombine(m_rootPath, "jars"),
FS::PathCombine(applicationDirPath(), "jars")
FS::PathCombine(applicationDirPath(), "jars"),
#if !defined(NDEBUG)
FS::PathCombine(applicationDirPath(), "..", "jars") // from inside build dir , for debuging
#endif
};
for(QString p : potentialPaths)
{