Skip to content

Commit dec6046

Browse files
committed
CMake: try fixing packaging name conflicting
1 parent 34b023a commit dec6046

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,11 @@ install(
11071107
##################
11081108

11091109
set(CPACK_GENERATOR "TGZ;ZIP")
1110+
if(APPLE)
1111+
string(TOLOWER "${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION}-macos-universal" CPACK_PACKAGE_FILE_NAME)
1112+
else() # We don't use this in Windows
1113+
string(TOLOWER "${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION}-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}" CPACK_PACKAGE_FILE_NAME)
1114+
endif()
11101115

11111116
if(LINUX)
11121117
set(CPACK_GENERATOR "${CPACK_GENERATOR};DEB;RPM")
@@ -1123,7 +1128,7 @@ set(CPACK_SET_DESTDIR ON)
11231128
set(CPACK_PACKAGE_CONTACT "Linus Dierheimer <[email protected]>")
11241129
set(CPACK_PACKAGE_DESCRIPTION "\
11251130
fastfetch is a neofetch-like tool for fetching system information and displaying them in a pretty way. \
1126-
It is written in c to achieve much better performance.\
1131+
It is written mostly in C to achieve much better performance.\
11271132
")
11281133

11291134
include(CPack)

0 commit comments

Comments
 (0)