2020-01-10 19:59:45 +00:00
|
|
|
set(CPACK_PACKAGE_VENDOR "lokinet.org")
|
2020-04-03 14:14:19 +00:00
|
|
|
set(CPACK_PACKAGE_HOMEPAGE_URL "https://lokinet.org/")
|
2020-04-18 22:13:56 +00:00
|
|
|
set(CPACK_RESOURCE_FILE_README "${PROJECT_SOURCE_DIR}/contrib/readme-installer.txt")
|
2022-01-28 16:10:03 +00:00
|
|
|
set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
|
2020-01-10 19:59:45 +00:00
|
|
|
|
2020-01-10 22:32:00 +00:00
|
|
|
if(WIN32)
|
|
|
|
include(cmake/win32_installer_deps.cmake)
|
2022-07-28 16:07:38 +00:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/contrib/configs/00-exit.ini DESTINATION share/conf.d COMPONENT exit_configs)
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/contrib/configs/00-keyfile.ini DESTINATION share/conf.d COMPONENT keyfile_configs)
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/contrib/configs/00-debug-log.ini DESTINATION share/conf.d COMPONENT debug_configs)
|
|
|
|
get_cmake_property(CPACK_COMPONENTS_ALL COMPONENTS)
|
|
|
|
list(REMOVE_ITEM CPACK_COMPONENTS_ALL "Unspecified" "lokinet" "gui" "exit_configs" "keyfile_configs" "debug_configs")
|
|
|
|
list(APPEND CPACK_COMPONENTS_ALL "lokinet" "gui" "exit_configs" "keyfile_configs" "debug_configs")
|
2022-06-22 21:56:35 +00:00
|
|
|
elseif(APPLE)
|
|
|
|
set(CPACK_GENERATOR DragNDrop;ZIP)
|
2022-07-28 16:07:38 +00:00
|
|
|
get_cmake_property(CPACK_COMPONENTS_ALL COMPONENTS)
|
|
|
|
list(REMOVE_ITEM CPACK_COMPONENTS_ALL "Unspecified")
|
2020-01-10 22:32:00 +00:00
|
|
|
endif()
|
|
|
|
|
2020-01-10 19:59:45 +00:00
|
|
|
include(CPack)
|
2021-05-14 17:07:44 +00:00
|
|
|
|
2022-07-28 16:07:38 +00:00
|
|
|
if(WIN32)
|
|
|
|
cpack_add_component(lokinet
|
|
|
|
DISPLAY_NAME "lokinet"
|
|
|
|
DESCRIPTION "core required lokinet files"
|
|
|
|
REQUIRED)
|
|
|
|
|
|
|
|
cpack_add_component(gui
|
|
|
|
DISPLAY_NAME "lokinet gui"
|
|
|
|
DESCRIPTION "electron based control panel for lokinet")
|
|
|
|
|
|
|
|
cpack_add_component(exit_configs
|
|
|
|
DISPLAY_NAME "auto-enable exit"
|
|
|
|
DESCRIPTION "automatically enable usage of exit.loki as an exit node\n"
|
|
|
|
DISABLED)
|
|
|
|
|
|
|
|
cpack_add_component(keyfile_configs
|
|
|
|
DISPLAY_NAME "persist address"
|
|
|
|
DESCRIPTION "persist .loki address across restarts of lokinet\nnot recommended when enabling exit nodes"
|
|
|
|
DISABLED)
|
|
|
|
|
|
|
|
cpack_add_component(debug_configs
|
|
|
|
DISPLAY_NAME "debug logging"
|
|
|
|
DESCRIPTION "enable debug spew log level by default"
|
|
|
|
DISABLED)
|
|
|
|
endif()
|