From 4ff9eb41f9d41d0a8c2f9b68027166b962df8c6f Mon Sep 17 00:00:00 2001
From: StableAgOH <stagoh17@gmail.com>
Date: Thu, 19 Oct 2023 03:11:51 +0800
Subject: [PATCH 2/3] mingw windres

---
 src/cli/CMakeLists.txt       | 2 +-
 src/cli/keepassxc-cli.exe.rc | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
 create mode 100644 src/cli/keepassxc-cli.exe.rc

diff --git a/src/cli/CMakeLists.txt b/src/cli/CMakeLists.txt
index a3852c80..e6d6cd56 100644
--- a/src/cli/CMakeLists.txt
+++ b/src/cli/CMakeLists.txt
@@ -66,7 +66,7 @@ install(TARGETS keepassxc-cli
 
 if(WIN32)
     target_sources(keepassxc-cli
-        PRIVATE keepassxc-cli.exe.manifest)
+        PRIVATE keepassxc-cli.exe.manifest keepassxc-cli.exe.rc)
 
 #    install(CODE "include(BundleUtilities)
 #                  fixup_bundle(\"\${CMAKE_INSTALL_PREFIX}/keepassxc-cli.exe\" \"\" \"\")"
diff --git a/src/cli/keepassxc-cli.exe.rc b/src/cli/keepassxc-cli.exe.rc
new file mode 100644
index 00000000..e5358acc
--- /dev/null
+++ b/src/cli/keepassxc-cli.exe.rc
@@ -0,0 +1,2 @@
+#include "winresrc.h"
+1 RT_MANIFEST "keepassxc-cli.exe.manifest"
-- 
2.42.0.windows.1

