add signing of DS and AC executable

This commit is contained in:
Stephen Birarda 2016-01-12 15:55:14 -08:00
parent 9aa5d017d6
commit d14c8cf9cc
4 changed files with 6 additions and 2 deletions

View file

@ -32,6 +32,10 @@ macro(install_beside_console)
DESTINATION ${COMPONENT_DESTINATION}
COMPONENT ${SERVER_COMPONENT}
)
# on windows for PR and production builds, sign the executable
set(EXECUTABLE_COMPONENT ${SERVER_COMPONENT})
optional_win_executable_signing()
endif ()
if (TARGET_NAME STREQUAL domain-server)

View file

@ -22,7 +22,7 @@ macro(optional_win_executable_signing)
# setup the post install command to sign the executable
set(SIGN_COMMAND "${SIGNTOOL_EXEC} sign /f $ENV{HF_PFX_FILE} /p $ENV{HF_PFX_PASSPHRASE} /tr http://tsa.starfieldtech.com\
/td SHA256 \${CMAKE_INSTALL_PREFIX}/${EXECUTABLE_NAME}"
/td SHA256 \${CMAKE_INSTALL_PREFIX}/$<TARGET_FILE_NAME:${TARGET_NAME}>"
)
install(CODE "execute_process(COMMAND ${SIGN_COMMAND})" COMPONENT ${EXECUTABLE_COMPONENT})

View file

@ -37,4 +37,5 @@ if (UNIX)
endif (UNIX)
package_libraries_for_deployment()
install_beside_console()

View file

@ -239,7 +239,6 @@ else (APPLE)
COMPONENT ${CLIENT_COMPONENT}
)
set(EXECUTABLE_NAME "${INTERFACE_EXEC_PREFIX}.exe")
set(EXECUTABLE_COMPONENT ${CLIENT_COMPONENT})
optional_win_executable_signing()