|
|
@ -259,7 +259,11 @@ set(CPACK_IFW_PACKAGE_WIZARD_SHOW_PAGE_LIST OFF)
|
|
|
|
include(InstallRequiredSystemLibraries)
|
|
|
|
include(InstallRequiredSystemLibraries)
|
|
|
|
include(CPack)
|
|
|
|
include(CPack)
|
|
|
|
include(CPackIFW)
|
|
|
|
include(CPackIFW)
|
|
|
|
cpack_add_component(${COMPONENT_NAME_MAIN} DOWNLOADED)
|
|
|
|
if(GPT4ALL_OFFLINE_INSTALLER)
|
|
|
|
|
|
|
|
cpack_add_component(${COMPONENT_NAME_MAIN})
|
|
|
|
|
|
|
|
else()
|
|
|
|
|
|
|
|
cpack_add_component(${COMPONENT_NAME_MAIN} DOWNLOADED)
|
|
|
|
|
|
|
|
endif()
|
|
|
|
cpack_ifw_configure_component(${COMPONENT_NAME_MAIN} ESSENTIAL FORCED_INSTALLATION)
|
|
|
|
cpack_ifw_configure_component(${COMPONENT_NAME_MAIN} ESSENTIAL FORCED_INSTALLATION)
|
|
|
|
cpack_ifw_configure_component(${COMPONENT_NAME_MAIN} VERSION ${APP_VERSION})
|
|
|
|
cpack_ifw_configure_component(${COMPONENT_NAME_MAIN} VERSION ${APP_VERSION})
|
|
|
|
cpack_ifw_configure_component(${COMPONENT_NAME_MAIN} LICENSES "MIT LICENSE" ${CPACK_RESOURCE_FILE_LICENSE})
|
|
|
|
cpack_ifw_configure_component(${COMPONENT_NAME_MAIN} LICENSES "MIT LICENSE" ${CPACK_RESOURCE_FILE_LICENSE})
|
|
|
@ -269,7 +273,7 @@ cpack_ifw_configure_component(${COMPONENT_NAME_MAIN} REPLACES "gpt4all-chat") #W
|
|
|
|
if (GPT4ALL_LOCALHOST)
|
|
|
|
if (GPT4ALL_LOCALHOST)
|
|
|
|
cpack_ifw_add_repository("GPT4AllRepository" URL "http://localhost/repository")
|
|
|
|
cpack_ifw_add_repository("GPT4AllRepository" URL "http://localhost/repository")
|
|
|
|
elseif(GPT4ALL_OFFLINE_INSTALLER)
|
|
|
|
elseif(GPT4ALL_OFFLINE_INSTALLER)
|
|
|
|
cpack_ifw_add_repository("GPT4AllRepository" URL "file://${CMAKE_BINARY_DIR}/packages")
|
|
|
|
# noop
|
|
|
|
else()
|
|
|
|
else()
|
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES Linux)
|
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES Linux)
|
|
|
|
cpack_ifw_add_repository("GPT4AllRepository" URL "https://gpt4all.io/installer_repos/linux/repository")
|
|
|
|
cpack_ifw_add_repository("GPT4AllRepository" URL "https://gpt4all.io/installer_repos/linux/repository")
|
|
|
|