Buildsystem/Windows: Add support for reading commithash and commitdate directly from the executable binaries.

To view this information, check the "Product Version" field in Properties on the respective daemon.

+ Fix worldserver/authserver .rc file layouts and content (now adheres to MS standards *sighs*)
+ Change .serv info output to show corename followed by the commit date and hash
+ Include showing the versionstring on worldserver startup completion (on Aokromes' request)

Thanks to Paradox for bugging me enough about it and the initial pull-request.
This commit is contained in:
click
2011-08-04 22:53:33 +02:00
parent 2056af63f0
commit d7715fa4b8
7 changed files with 75 additions and 55 deletions
+23 -16
View File
@@ -53,31 +53,38 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_SYS_DEFAULT
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION FILEVER
PRODUCTVERSION PRODUCTVER
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
FILEVERSION VER_FILEVERSION
PRODUCTVERSION VER_PRODUCTVERSION
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
#ifndef _DEBUG
FILEFLAGS 0
#else
FILEFLAGS 0x0L
FILEFLAGS (VER_PRIVATEBUILD|VER_PRERELASE|VER_DEBUG)
#endif
FILEOS 0x0L
FILETYPE 0x0L
FILESUBTYPE 0x0L
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_APP
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "080004b0"
BEGIN
VALUE "FileDescription", "worldserver"
VALUE "FileVersion", STRFILEVER
VALUE "InternalName", "worldserver"
VALUE "LegalCopyright", "Copyright (C) 2008-2010"
VALUE "OriginalFilename", "worldserver.exe"
VALUE "ProductName", "worldserver"
VALUE "ProductVersion", STRPRODUCTVER
VALUE "CompanyName", VER_COMPANYNAME_STR
VALUE "FileDescription", "TrinityCore World Server Daemon"
VALUE "FileVersion", VER_FILEVERSION_STR
VALUE "InternalName", "worldserver"
VALUE "LegalCopyright", VER_LEGALCOPYRIGHT_STR
VALUE "OriginalFilename", "worldserver.exe"
VALUE "ProductName", "TrinityCore World Server"
VALUE "ProductVersion", VER_PRODUCTVERSION_STR
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x800, 1200