Skip to content

Commit dc80d1e

Browse files
committed
Fix up the offline installer.
1 parent e86c637 commit dc80d1e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

gpt4all-chat/CMakeLists.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,11 @@ set(CPACK_IFW_PACKAGE_WIZARD_SHOW_PAGE_LIST OFF)
259259
include(InstallRequiredSystemLibraries)
260260
include(CPack)
261261
include(CPackIFW)
262-
cpack_add_component(${COMPONENT_NAME_MAIN} DOWNLOADED)
262+
if(GPT4ALL_OFFLINE_INSTALLER)
263+
cpack_add_component(${COMPONENT_NAME_MAIN})
264+
else()
265+
cpack_add_component(${COMPONENT_NAME_MAIN} DOWNLOADED)
266+
endif()
263267
cpack_ifw_configure_component(${COMPONENT_NAME_MAIN} ESSENTIAL FORCED_INSTALLATION)
264268
cpack_ifw_configure_component(${COMPONENT_NAME_MAIN} VERSION ${APP_VERSION})
265269
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
269273
if (GPT4ALL_LOCALHOST)
270274
cpack_ifw_add_repository("GPT4AllRepository" URL "http://localhost/repository")
271275
elseif(GPT4ALL_OFFLINE_INSTALLER)
272-
cpack_ifw_add_repository("GPT4AllRepository" URL "file://${CMAKE_BINARY_DIR}/packages")
276+
# noop
273277
else()
274278
if(${CMAKE_SYSTEM_NAME} MATCHES Linux)
275279
cpack_ifw_add_repository("GPT4AllRepository" URL "https://gpt4all.io/installer_repos/linux/repository")

0 commit comments

Comments
 (0)