2023-04-11 03:34:34 +00:00
|
|
|
set(LINUXDEPLOYQT "@LINUXDEPLOYQT@")
|
2023-04-10 20:46:23 +00:00
|
|
|
set(COMPONENT_NAME_MAIN "@COMPONENT_NAME_MAIN@")
|
|
|
|
set(CMAKE_CURRENT_SOURCE_DIR "@CMAKE_CURRENT_SOURCE_DIR@")
|
2023-04-22 03:23:57 +00:00
|
|
|
set(DATA_DIR ${CPACK_TEMPORARY_INSTALL_DIRECTORY}/packages/${COMPONENT_NAME_MAIN}/data)
|
|
|
|
set(BIN_DIR ${DATA_DIR}/bin)
|
|
|
|
set(Qt6_ROOT_DIR "@Qt6_ROOT_DIR@")
|
|
|
|
set(ENV{LD_LIBRARY_PATH} "${BIN_DIR}:${Qt6_ROOT_DIR}/../lib/")
|
2023-04-24 03:42:55 +00:00
|
|
|
execute_process(COMMAND ${LINUXDEPLOYQT} ${BIN_DIR}/chat -qmldir=${CMAKE_CURRENT_SOURCE_DIR} -bundle-non-qt-libs -qmake=${Qt6_ROOT_DIR}/bin/qmake -verbose=2)
|
2023-06-05 14:50:16 +00:00
|
|
|
file(GLOB MYLLMODELLIBS ${CPACK_TEMPORARY_INSTALL_DIRECTORY}/packages/${COMPONENT_NAME_MAIN}/data/lib/*llmodel.*)
|
|
|
|
file(COPY ${MYLLMODELLIBS}
|
|
|
|
DESTINATION ${CPACK_TEMPORARY_INSTALL_DIRECTORY}/packages/${COMPONENT_NAME_MAIN}/data/bin)
|
2023-04-13 02:12:01 +00:00
|
|
|
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/icons/logo-32.png"
|
2023-04-22 03:23:57 +00:00
|
|
|
DESTINATION ${DATA_DIR})
|
2023-04-13 02:12:01 +00:00
|
|
|
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/icons/logo-48.png"
|
2023-04-22 03:23:57 +00:00
|
|
|
DESTINATION ${DATA_DIR})
|