diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-03-14 23:31:38 +0100 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-03-22 20:11:15 +0100 |
commit | d16c6b0e691061f404eb5bab2004504918db4de3 (patch) | |
tree | e03884bee892e75e070ba8bad9fe5bef75f947b2 /CMakeLists.txt | |
parent | 76e1aba58b71fff9293f2cff6ba581629f6f54bc (diff) | |
download | PrismLauncher-d16c6b0e691061f404eb5bab2004504918db4de3.tar.gz PrismLauncher-d16c6b0e691061f404eb5bab2004504918db4de3.tar.bz2 PrismLauncher-d16c6b0e691061f404eb5bab2004504918db4de3.zip |
Merge pull request #265 from Scrumplex/fix-javacheck-appimage
Define JARs path relative to application root
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b1b97d7..c087e95f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -207,7 +207,8 @@ elseif(UNIX) set(LAUNCHER_METAINFO_DEST_DIR "share/metainfo" CACHE STRING "Path to the metainfo directory") set(LAUNCHER_ICON_DEST_DIR "share/icons/hicolor/scalable/apps" CACHE STRING "Path to the scalable icon directory") - set(Launcher_APP_BINARY_DEFS "-DMULTIMC_JARS_LOCATION=${CMAKE_INSTALL_PREFIX}/${JARS_DEST_DIR}") + # jars path is determined on runtime, relative to "Application root path", generally /usr for Launcher_PORTABLE=0 + set(Launcher_APP_BINARY_DEFS "-DLAUNCHER_JARS_LOCATION=${JARS_DEST_DIR}") install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${Launcher_Desktop} DESTINATION ${LAUNCHER_DESKTOP_DEST_DIR}) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${Launcher_MetaInfo} DESTINATION ${LAUNCHER_METAINFO_DEST_DIR}) |