mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-02 09:40:42 +00:00
Fix up the offline installer.
This commit is contained in:
parent
e86c63750d
commit
dc80d1e578
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user