mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-02 09:40:42 +00:00
Make an offline installer option.
This commit is contained in:
parent
c4d312ae11
commit
727a74de6c
@ -34,6 +34,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|||||||
|
|
||||||
option(GPT4ALL_LOCALHOST OFF "Build installer for localhost repo")
|
option(GPT4ALL_LOCALHOST OFF "Build installer for localhost repo")
|
||||||
option(GPT4ALL_AVX_ONLY OFF "Build for avx only")
|
option(GPT4ALL_AVX_ONLY OFF "Build for avx only")
|
||||||
|
option(GPT4ALL_OFFLINE_INSTALLER "Build an offline installer" OFF)
|
||||||
|
|
||||||
find_package(Qt6 6.2 COMPONENTS Core Quick QuickDialogs2 Svg REQUIRED)
|
find_package(Qt6 6.2 COMPONENTS Core Quick QuickDialogs2 Svg REQUIRED)
|
||||||
|
|
||||||
@ -191,6 +192,8 @@ 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)
|
||||||
|
cpack_ifw_add_repository("GPT4AllRepository" URL "file://${CMAKE_BINARY_DIR}/packages")
|
||||||
else()
|
else()
|
||||||
if(${CMAKE_SYSTEM_NAME} MATCHES Linux)
|
if(${CMAKE_SYSTEM_NAME} MATCHES Linux)
|
||||||
if (GPT4ALL_AVX_ONLY)
|
if (GPT4ALL_AVX_ONLY)
|
||||||
|
Loading…
Reference in New Issue
Block a user