From dec604691c4748a1c37e9b36a41922685eb052c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sat, 10 Feb 2024 13:14:43 +0800 Subject: [PATCH] CMake: try fixing packaging name conflicting --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 12a9c9b75..4b457daa4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1107,6 +1107,11 @@ install( ################## set(CPACK_GENERATOR "TGZ;ZIP") +if(APPLE) + string(TOLOWER "${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION}-macos-universal" CPACK_PACKAGE_FILE_NAME) +else() # We don't use this in Windows + string(TOLOWER "${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION}-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}" CPACK_PACKAGE_FILE_NAME) +endif() if(LINUX) set(CPACK_GENERATOR "${CPACK_GENERATOR};DEB;RPM") @@ -1123,7 +1128,7 @@ set(CPACK_SET_DESTDIR ON) set(CPACK_PACKAGE_CONTACT "Linus Dierheimer ") set(CPACK_PACKAGE_DESCRIPTION "\ fastfetch is a neofetch-like tool for fetching system information and displaying them in a pretty way. \ -It is written in c to achieve much better performance.\ +It is written mostly in C to achieve much better performance.\ ") include(CPack)