aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-01-23 18:36:58 -0700
committerGitHub <noreply@github.com>2023-01-23 18:36:58 -0700
commitc45fa016c0f0e5c8a03f029488de29bde8dadcc4 (patch)
treeeb3d09adfe03a7d11683be8efa145431e0817918 /launcher
parent16477a8f6c1fc646208b41b76598ce8e7a60369e (diff)
downloadPrismLauncher-c45fa016c0f0e5c8a03f029488de29bde8dadcc4.tar.gz
PrismLauncher-c45fa016c0f0e5c8a03f029488de29bde8dadcc4.tar.bz2
PrismLauncher-c45fa016c0f0e5c8a03f029488de29bde8dadcc4.zip
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>
Diffstat (limited to 'launcher')
-rw-r--r--launcher/Application.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index 5f70ab94..537ffb68 100644
--- a/launcher/Application.cpp
+++ b/launcher/Application.cpp
@@ -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)
{