From df89beb256ca8b5280991d9cddd4b3277a5681c9 Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Tue, 7 May 2024 02:59:17 +0000 Subject: [PATCH] build: disable gpg signatures by default Add the GPG_SIGNATURES cmake option to control creating gpg clearsign signatures for the translations and exe zips for UPSTREAM_RELEASE, defaulting to OFF. Signed-off-by: Rafael Kitover --- cmake/Options.cmake | 2 ++ src/wx/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/Options.cmake b/cmake/Options.cmake index 33b78fd5..a8fd5c73 100644 --- a/cmake/Options.cmake +++ b/cmake/Options.cmake @@ -162,3 +162,5 @@ endif() if(TRANSLATIONS_ONLY AND (ENABLE_SDL OR ENABLE_WX)) message(FATAL_ERROR "The SDL and wxWidgets ports can't be built when TRANSLATIONS_ONLY is enabled") endif() + +option(GPG_SIGNATURES "Create GPG signatures for release files" OFF) diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index b20cec92..1fe1bd5c 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -793,7 +793,7 @@ if(UPSTREAM_RELEASE AND WIN32) WORKING_DIRECTORY ${CMAKE_BINARY_DIR} ) - if(GPG_KEYS) + if(GPG_SIGNATURES AND GPG_KEYS) add_custom_command( OUTPUT ${CMAKE_BINARY_DIR}/translations.zip.asc COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_BINARY_DIR}/translations.zip.asc