From 02a7d147ef79009cc1997f073b7348cbe5085aea Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 1 Oct 2013 16:13:21 -0500 Subject: Add run script to install. Also renamed "translations_target" to "translations". The old name was dumb and annoying. --- CMakeLists.txt | 3 ++- package/linux/MultiMC | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e51bbfe8..140037cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -433,6 +433,7 @@ INSTALL(TARGETS MultiMC BUNDLE DESTINATION . COMPONENT Runtime RUNTIME DESTINATION bin COMPONENT Runtime ) +INSTALL(FILES package/linux/MultiMC DESTINATION .) ENDIF() ENDIF() @@ -513,6 +514,6 @@ else (UPDATE_TRANSLATIONS) qt5_add_translation(QM_FILES ${TRANSLATIONS_FILES}) endif (UPDATE_TRANSLATIONS) -add_custom_target (translations_target DEPENDS ${QM_FILES}) +add_custom_target (translations DEPENDS ${QM_FILES}) install(FILES ${QM_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/translations) diff --git a/package/linux/MultiMC b/package/linux/MultiMC index 235d17c5..297304cf 100755 --- a/package/linux/MultiMC +++ b/package/linux/MultiMC @@ -4,6 +4,8 @@ MMC_DIR=$(dirname "$0") cd "${MMC_DIR}" -export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"./lib" -export QT_PLUGIN_PATH=$QT_PLUGIN_PATH:"." -exec ./bin/MultiMC +export LD_LIBRARY_PATH="${MMC_DIR}/lib":$LD_LIBRARY_PATH +export QT_PLUGIN_PATH="${MMC_DIR}/plugins" +export QT_FONTPATH="${MMC_DIR}/fonts" +exec ${MMC_DIR}/bin/MultiMC -d ${MMC_DIR} $@ + -- cgit v1.2.3