File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,11 @@ set(CPACK_IFW_PACKAGE_WIZARD_SHOW_PAGE_LIST OFF)
259
259
include (InstallRequiredSystemLibraries)
260
260
include (CPack)
261
261
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 ()
263
267
cpack_ifw_configure_component(${COMPONENT_NAME_MAIN} ESSENTIAL FORCED_INSTALLATION)
264
268
cpack_ifw_configure_component(${COMPONENT_NAME_MAIN} VERSION ${APP_VERSION} )
265
269
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
269
273
if (GPT4ALL_LOCALHOST)
270
274
cpack_ifw_add_repository("GPT4AllRepository" URL "http://localhost/repository" )
271
275
elseif (GPT4ALL_OFFLINE_INSTALLER)
272
- cpack_ifw_add_repository( "GPT4AllRepository" URL "file:// ${CMAKE_BINARY_DIR} /packages" )
276
+ # noop
273
277
else ()
274
278
if (${CMAKE_SYSTEM_NAME} MATCHES Linux)
275
279
cpack_ifw_add_repository("GPT4AllRepository" URL "https://gpt4all.io/installer_repos/linux/repository" )
You can’t perform that action at this time.
0 commit comments