diff options
author | saturneric <[email protected]> | 2024-12-01 00:33:15 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-12-01 02:00:27 +0000 |
commit | 3af4fcb32ee399927aa1a99db6c197698eb09aaf (patch) | |
tree | e0603f5e700e51003b9ae727ed582717183b8b33 | |
parent | Merge branch 'dev/2.1.5/mingw' into develop (diff) | |
download | GpgFrontend-3af4fcb32ee399927aa1a99db6c197698eb09aaf.tar.gz GpgFrontend-3af4fcb32ee399927aa1a99db6c197698eb09aaf.zip |
fix: solve build issues in devops process
-rw-r--r-- | .github/workflows/testing-nightly.yml | 7 | ||||
m--------- | modules | 0 | ||||
-rw-r--r-- | src/cmd.cpp | 12 | ||||
-rw-r--r-- | src/core/struct/settings_object/KeyDatabaseItemSO.h | 1 | ||||
-rw-r--r-- | src/core/utils/BuildInfoUtils.cpp | 3 | ||||
-rw-r--r-- | src/core/utils/BuildInfoUtils.h | 7 |
6 files changed, 18 insertions, 12 deletions
diff --git a/.github/workflows/testing-nightly.yml b/.github/workflows/testing-nightly.yml index ed763293..080bd94a 100644 --- a/.github/workflows/testing-nightly.yml +++ b/.github/workflows/testing-nightly.yml @@ -115,13 +115,9 @@ jobs: msys2-devel base-devel binutils - autoconf - make - texinfo - automake zip + unzip libintl - gettext-devel msys2-runtime-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-gcc @@ -131,6 +127,7 @@ jobs: mingw-w64-x86_64-icu mingw-w64-x86_64-ninja mingw-w64-x86_64-gnupg + mingw-w64-x86_64-gpgme mingw-w64-x86_64-libarchive mingw-w64-x86_64-gtest if: matrix.os == 'windows-2019' diff --git a/modules b/modules -Subproject 419ab0972fff50187956e3b4139f786be877995 +Subproject 641913f44af94ebc00feea4a01bf3195a7dbd37 diff --git a/src/cmd.cpp b/src/cmd.cpp index d56f1c8a..89a0be95 100644 --- a/src/cmd.cpp +++ b/src/cmd.cpp @@ -35,14 +35,13 @@ #include <qtextstream.h> #include "core/GpgCoreInit.h" -#include "core/model/SettingsObject.h" #include "core/module/ModuleManager.h" -#include "core/struct/settings_object/KeyDatabaseListSO.h" #include "core/utils/BuildInfoUtils.h" // GpgFrontend #include "GpgFrontendContext.h" +#include "core/utils/GpgUtils.h" #include "test/GpgFrontendTest.h" namespace GpgFrontend { @@ -80,6 +79,8 @@ auto PrintEnvInfo() -> int { stream << Tr("OpenSSL Version: ") << GetProjectOpenSSLVersion() << '\n'; stream << Tr("Libarchive Version: ") << GetProjectLibarchiveVersion() << '\n'; + + stream << '\n'; stream << Tr("GnuPG: ") << '\n'; @@ -150,12 +151,9 @@ auto PrintEnvInfo() -> int { stream << "Key Database(s): " << '\n'; stream << '\n'; - auto key_database_list = - KeyDatabaseListSO(SettingsObject("key_database_list")); - const auto key_databases = key_database_list.key_databases; - int index = 0; - for (const auto& key_database : key_databases) { + auto key_dbs = GetGpgKeyDatabaseInfos(); + for (const auto& key_database : key_dbs) { stream << Tr("Key Database [") << index++ << "] " << Tr("Name: ") << key_database.name << " " << Tr("-> Path: ") << key_database.path << '\n'; diff --git a/src/core/struct/settings_object/KeyDatabaseItemSO.h b/src/core/struct/settings_object/KeyDatabaseItemSO.h index 4f6020d7..873246b2 100644 --- a/src/core/struct/settings_object/KeyDatabaseItemSO.h +++ b/src/core/struct/settings_object/KeyDatabaseItemSO.h @@ -29,6 +29,7 @@ #pragma once #include "core/model/KeyDatabaseInfo.h" + namespace GpgFrontend { struct KeyDatabaseItemSO { diff --git a/src/core/utils/BuildInfoUtils.cpp b/src/core/utils/BuildInfoUtils.cpp index cb738c3c..43d8b71d 100644 --- a/src/core/utils/BuildInfoUtils.cpp +++ b/src/core/utils/BuildInfoUtils.cpp @@ -29,6 +29,7 @@ #include "BuildInfoUtils.h" #include <archive.h> +#include <gpgme.h> #include <openssl/opensslv.h> #include "GpgFrontendBuildInfo.h" @@ -59,6 +60,8 @@ auto GetProjectQtVersion() -> QString { return {qVersion()}; } auto GetProjectOpenSSLVersion() -> QString { return {OPENSSL_VERSION_TEXT}; } +auto GetProjectGpgMEVersion() -> QString { return {GPGME_VERSION}; } + auto GetProjectLibarchiveVersion() -> QString { return {ARCHIVE_VERSION_ONLY_STRING}; } diff --git a/src/core/utils/BuildInfoUtils.h b/src/core/utils/BuildInfoUtils.h index 66954094..33d922f1 100644 --- a/src/core/utils/BuildInfoUtils.h +++ b/src/core/utils/BuildInfoUtils.h @@ -107,6 +107,13 @@ auto GPGFRONTEND_CORE_EXPORT GetProjectLibarchiveVersion() -> QString; * * @return QString */ +auto GPGFRONTEND_CORE_EXPORT GetProjectGpgMEVersion() -> QString; + +/** + * @brief + * + * @return QString + */ auto GPGFRONTEND_CORE_EXPORT GetHttpRequestUserAgent() -> QString; } // namespace GpgFrontend
\ No newline at end of file |