Fix: Generate windows installer only for stable releases

This commit is contained in:
glx22
2020-06-07 04:34:50 +02:00
committed by Charles Pigott
parent f51e66f697
commit 3d76677594
4 changed files with 11 additions and 3 deletions

View File

@@ -86,8 +86,11 @@ if (APPLE)
set(CPACK_PACKAGE_FILE_NAME "openttd-#CPACK_PACKAGE_VERSION#-macosx")
elseif (WIN32)
set(CPACK_GENERATOR "ZIP;NSIS")
include(PackageNSIS)
set(CPACK_GENERATOR "ZIP")
if (OPTION_USE_NSIS)
list(APPEND CPACK_GENERATOR "NSIS")
include(PackageNSIS)
endif (OPTION_USE_NSIS)
set(CPACK_PACKAGE_FILE_NAME "openttd-#CPACK_PACKAGE_VERSION#-windows-${CPACK_SYSTEM_NAME}")
elseif (UNIX)