Add run script to install.
Also renamed "translations_target" to "translations". The old name was dumb and annoying.
This commit is contained in:
parent
22bdf67bf7
commit
02a7d147ef
@ -433,6 +433,7 @@ INSTALL(TARGETS MultiMC
|
|||||||
BUNDLE DESTINATION . COMPONENT Runtime
|
BUNDLE DESTINATION . COMPONENT Runtime
|
||||||
RUNTIME DESTINATION bin COMPONENT Runtime
|
RUNTIME DESTINATION bin COMPONENT Runtime
|
||||||
)
|
)
|
||||||
|
INSTALL(FILES package/linux/MultiMC DESTINATION .)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
@ -513,6 +514,6 @@ else (UPDATE_TRANSLATIONS)
|
|||||||
qt5_add_translation(QM_FILES ${TRANSLATIONS_FILES})
|
qt5_add_translation(QM_FILES ${TRANSLATIONS_FILES})
|
||||||
endif (UPDATE_TRANSLATIONS)
|
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)
|
install(FILES ${QM_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/translations)
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
MMC_DIR=$(dirname "$0")
|
MMC_DIR=$(dirname "$0")
|
||||||
cd "${MMC_DIR}"
|
cd "${MMC_DIR}"
|
||||||
|
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"./lib"
|
export LD_LIBRARY_PATH="${MMC_DIR}/lib":$LD_LIBRARY_PATH
|
||||||
export QT_PLUGIN_PATH=$QT_PLUGIN_PATH:"."
|
export QT_PLUGIN_PATH="${MMC_DIR}/plugins"
|
||||||
exec ./bin/MultiMC
|
export QT_FONTPATH="${MMC_DIR}/fonts"
|
||||||
|
exec ${MMC_DIR}/bin/MultiMC -d ${MMC_DIR} $@
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user