Skip to content

Commit

Permalink
fix macos pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
keifufu committed Oct 8, 2024
1 parent 4c52519 commit 8c04776
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
unset(CPACK_PACKAGE_DESCRIPTION_FILE)
unset(CPACK_RESOURCE_FILE_LICENSE)
unset(CPACK_RESOURCE_FILE_README)
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION .)
set(CPACK_GENERATOR "productbuild")
set(CPACK_PACKAGING_INSTALL_PREFIX "/usr/local/bin")
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}_macos_aarch64")
set(CPACK_PACKAGE_EXECUTABLES "wnpcli;wnpcli")
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
set(CPACK_GENERATOR "NSIS")
set(CPACK_NSIS_MODIFY_PATH ON)
Expand All @@ -56,3 +57,4 @@ elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
endif()

include(CPack)
cpack_add_component(CPACK_COMPONENTS_ALL REQUIRED) # packagebuild fix

0 comments on commit 8c04776

Please sign in to comment.