Skip to content

Commit ea0de86

Browse files
committed
Add direct signature of main release asset
This was requested by a package maintainer.
1 parent 487a046 commit ea0de86

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cmake/makeDist.cmake

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,14 @@ with status: ${gpg_status} and output: ${gpg_output}")
7676
"${CMAKE_ARGV4}/${l_archive}-SHA256.txt.asc")
7777
message(STATUS "GPG signed SHA256 checksum created: ${CMAKE_ARGV4}/${l_archive}-SHA256.txt.asc")
7878
endif()
79+
execute_process(
80+
COMMAND "${GPG_EXECUTABLE}" --armor --detach-sign --comment "Detached signature of ${archive}.tar.gz." "${release_asset}"
81+
RESULT_VARIABLE gpg_status
82+
RESULT_VARIABLE gpg_output
83+
WORKING_DIRECTORY "${CMAKE_ARGV4}"
84+
)
85+
if(NOT (gpg_status STREQUAL "0"))
86+
message( WARNING "GPG signing of ${release_asset} appears to have failed
87+
with status: ${gpg_status} and output: ${gpg_output}")
88+
endif()
7989
endif()

0 commit comments

Comments
 (0)