mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-12 04:42:36 -03:00
8f7b930475
Removes the leading 0 from the version number. The minor version, which we had been using as the major version, is now the major version. The revision, which we had been using as the minor version, is now the minor version. The revision number is dropped. The build number is promoted to being part of the version number. This also avoids issues where it was accidentally not included in the version number. The CLIENT_VERSION remains the same format as previous as previously, the Major version was 0 so that was never a factor in CLIENT_VERSION.
35 lines
1.5 KiB
Text
35 lines
1.5 KiB
Text
#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_PRODUCTVERSION_STR STRINGIZE(CLIENT_VERSION_MAJOR) "." STRINGIZE(CLIENT_VERSION_MINOR) "." STRINGIZE(CLIENT_VERSION_BUILD)
|
|
#define VER_FILEVERSION VER_PRODUCTVERSION
|
|
#define VER_FILEVERSION_STR VER_PRODUCTVERSION_STR
|
|
|
|
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-cli (JSON-RPC client for " PACKAGE_NAME ")"
|
|
VALUE "FileVersion", VER_FILEVERSION_STR
|
|
VALUE "InternalName", "bitcoin-cli"
|
|
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-cli.exe"
|
|
VALUE "ProductName", "bitcoin-cli"
|
|
VALUE "ProductVersion", VER_PRODUCTVERSION_STR
|
|
END
|
|
END
|
|
|
|
BLOCK "VarFileInfo"
|
|
BEGIN
|
|
VALUE "Translation", 0x0, 1252 // language neutral - multilingual (decimal)
|
|
END
|
|
END
|