windows: Add resource file for bitcoin.exe

This commit is contained in:
Hennadii Stepanov
2025-05-28 20:20:54 +01:00
parent 88b22acc3d
commit df82c2dc17
2 changed files with 34 additions and 0 deletions

View File

@@ -335,6 +335,7 @@ target_link_libraries(bitcoin_node
# Bitcoin wrapper executable that can call other executables.
if(BUILD_BITCOIN_BIN)
add_executable(bitcoin bitcoin.cpp)
add_windows_resources(bitcoin bitcoin-res.rc)
target_link_libraries(bitcoin core_interface bitcoin_util)
install_binary_component(bitcoin)
endif()

33
src/bitcoin-res.rc Normal file
View File

@@ -0,0 +1,33 @@
#include <windows.h> // needed for VERSIONINFO
#include "clientversion.h" // holds the needed client version information
#define VER_PRODUCTVERSION CLIENT_VERSION_MAJOR,CLIENT_VERSION_MINOR,CLIENT_VERSION_BUILD
#define VER_FILEVERSION VER_PRODUCTVERSION
VS_VERSION_INFO VERSIONINFO
FILEVERSION VER_FILEVERSION
PRODUCTVERSION VER_PRODUCTVERSION
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_APP
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4" // U.S. English - multilingual (hex)
BEGIN
VALUE "CompanyName", "Bitcoin"
VALUE "FileDescription", "bitcoin (Bitcoin wrapper executable that can call other executables)"
VALUE "FileVersion", CLIENT_VERSION_STRING
VALUE "InternalName", "bitcoin"
VALUE "LegalCopyright", COPYRIGHT_STR
VALUE "LegalTrademarks1", "Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php."
VALUE "OriginalFilename", "bitcoin.exe"
VALUE "ProductName", "bitcoin"
VALUE "ProductVersion", CLIENT_VERSION_STRING
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0, 1252 // language neutral - multilingual (decimal)
END
END