diff options
author | Owen Rudge <owen@owenrudge.net> | 2021-05-24 23:03:04 +0100 |
---|---|---|
committer | Owen Rudge <owen@owenrudge.net> | 2021-05-26 13:40:44 +0100 |
commit | 3ce7e31f64d86b3ca58be61407a33380cda072b4 (patch) | |
tree | c6e65b2e1f07bdfbc898c3b965ffbb5dbb639bb8 /cmake | |
parent | c96945fa2b0487c7ccd5d7c14399e1b95e60c8c4 (diff) | |
download | openttd-3ce7e31f64d86b3ca58be61407a33380cda072b4.tar.xz |
Feature: Sign Windows builds
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/InstallAndPackage.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/InstallAndPackage.cmake b/cmake/InstallAndPackage.cmake index 9b7d65788..057f0934f 100644 --- a/cmake/InstallAndPackage.cmake +++ b/cmake/InstallAndPackage.cmake @@ -138,6 +138,13 @@ elseif(WIN32) endif() set(CPACK_PACKAGE_FILE_NAME "openttd-#CPACK_PACKAGE_VERSION#-windows-${CPACK_SYSTEM_NAME}") + + if(WINDOWS_CERTIFICATE_COMMON_NAME) + add_custom_command(TARGET openttd + POST_BUILD + COMMAND "${CMAKE_SOURCE_DIR}/os/windows/sign.bat" "$<TARGET_FILE:openttd>" "${WINDOWS_CERTIFICATE_COMMON_NAME}" + ) + endif() elseif(UNIX) # With FHS, we can create deb/rpm/... Without it, they would be horribly broken # and not work. The other way around is also true; with FHS they are not |