Generate nicer artifact names
For instance, Rhubarb-Lip-Sync-1.10.0-macOS.zip rather than rhubarb-lip-sync-1.10.0-osx.zip
This commit is contained in:
parent
8a94fb7db0
commit
7ff2d0be6b
|
@ -19,9 +19,7 @@ install(
|
||||||
# Configure CPack
|
# Configure CPack
|
||||||
function(get_short_system_name variable)
|
function(get_short_system_name variable)
|
||||||
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
|
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
|
||||||
set(${variable} "OSX" PARENT_SCOPE)
|
set(${variable} "macOS" PARENT_SCOPE)
|
||||||
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
|
|
||||||
set(${variable} "Win32" PARENT_SCOPE)
|
|
||||||
else()
|
else()
|
||||||
set(${variable} "${CMAKE_SYSTEM_NAME}" PARENT_SCOPE)
|
set(${variable} "${CMAKE_SYSTEM_NAME}" PARENT_SCOPE)
|
||||||
endif()
|
endif()
|
||||||
|
@ -35,7 +33,6 @@ set(CPACK_PACKAGE_VERSION_MINOR ${appVersionMinor})
|
||||||
set(CPACK_PACKAGE_VERSION_PATCH ${appVersionPatch})
|
set(CPACK_PACKAGE_VERSION_PATCH ${appVersionPatch})
|
||||||
set(CPACK_PACKAGE_VERSION ${appVersion})
|
set(CPACK_PACKAGE_VERSION ${appVersion})
|
||||||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}")
|
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}")
|
||||||
string(TOLOWER "${CPACK_PACKAGE_FILE_NAME}" CPACK_PACKAGE_FILE_NAME)
|
|
||||||
set(CPACK_GENERATOR ZIP)
|
set(CPACK_GENERATOR ZIP)
|
||||||
|
|
||||||
# Run CPack
|
# Run CPack
|
||||||
|
|
Loading…
Reference in New Issue