diff options
author | Owen Rudge <owen@owenrudge.net> | 2021-01-17 16:45:23 +0000 |
---|---|---|
committer | Owen Rudge <owen@owenrudge.net> | 2021-01-18 08:57:39 +0000 |
commit | 2d9e164ec47aac60c48e9dce29753ab2df8e4ba0 (patch) | |
tree | 828c5fd7fe80cbc3959a3105ecea3de432831e02 /cmake | |
parent | 1eceee915ede04301c411bb0465c32a3712aa0d2 (diff) | |
download | openttd-2d9e164ec47aac60c48e9dce29753ab2df8e4ba0.tar.xz |
Fix: [Actions] Give Universal Mac packages the "universal" suffix
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/InstallAndPackage.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/InstallAndPackage.cmake b/cmake/InstallAndPackage.cmake index 5fb4646e5..be00cfc15 100644 --- a/cmake/InstallAndPackage.cmake +++ b/cmake/InstallAndPackage.cmake @@ -101,7 +101,11 @@ if(APPLE) set(CPACK_GENERATOR "Bundle") include(PackageBundle) - set(CPACK_PACKAGE_FILE_NAME "openttd-#CPACK_PACKAGE_VERSION#-macos-${CPACK_SYSTEM_NAME}") + if (APPLE_UNIVERSAL_PACKAGE) + set(CPACK_PACKAGE_FILE_NAME "openttd-#CPACK_PACKAGE_VERSION#-macos-universal") + else() + set(CPACK_PACKAGE_FILE_NAME "openttd-#CPACK_PACKAGE_VERSION#-macos-${CPACK_SYSTEM_NAME}") + endif() elseif(WIN32) set(CPACK_GENERATOR "ZIP") if(OPTION_USE_NSIS) |