Skip to content

Commit df82c2d

Browse files
committed
windows: Add resource file for bitcoin.exe
1 parent 88b22ac commit df82c2d

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ target_link_libraries(bitcoin_node
335335
# Bitcoin wrapper executable that can call other executables.
336336
if(BUILD_BITCOIN_BIN)
337337
add_executable(bitcoin bitcoin.cpp)
338+
add_windows_resources(bitcoin bitcoin-res.rc)
338339
target_link_libraries(bitcoin core_interface bitcoin_util)
339340
install_binary_component(bitcoin)
340341
endif()

src/bitcoin-res.rc

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#include <windows.h> // needed for VERSIONINFO
2+
#include "clientversion.h" // holds the needed client version information
3+
4+
#define VER_PRODUCTVERSION CLIENT_VERSION_MAJOR,CLIENT_VERSION_MINOR,CLIENT_VERSION_BUILD
5+
#define VER_FILEVERSION VER_PRODUCTVERSION
6+
7+
VS_VERSION_INFO VERSIONINFO
8+
FILEVERSION VER_FILEVERSION
9+
PRODUCTVERSION VER_PRODUCTVERSION
10+
FILEOS VOS_NT_WINDOWS32
11+
FILETYPE VFT_APP
12+
BEGIN
13+
BLOCK "StringFileInfo"
14+
BEGIN
15+
BLOCK "040904E4" // U.S. English - multilingual (hex)
16+
BEGIN
17+
VALUE "CompanyName", "Bitcoin"
18+
VALUE "FileDescription", "bitcoin (Bitcoin wrapper executable that can call other executables)"
19+
VALUE "FileVersion", CLIENT_VERSION_STRING
20+
VALUE "InternalName", "bitcoin"
21+
VALUE "LegalCopyright", COPYRIGHT_STR
22+
VALUE "LegalTrademarks1", "Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php."
23+
VALUE "OriginalFilename", "bitcoin.exe"
24+
VALUE "ProductName", "bitcoin"
25+
VALUE "ProductVersion", CLIENT_VERSION_STRING
26+
END
27+
END
28+
29+
BLOCK "VarFileInfo"
30+
BEGIN
31+
VALUE "Translation", 0x0, 1252 // language neutral - multilingual (decimal)
32+
END
33+
END

0 commit comments

Comments
 (0)