From d7715fa4b8d18d518c1247bcb77c0ef76e9e4b17 Mon Sep 17 00:00:00 2001 From: click Date: Thu, 4 Aug 2011 22:53:33 +0200 Subject: 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. --- src/server/authserver/authserver.rc | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) (limited to 'src/server/authserver/authserver.rc') diff --git a/src/server/authserver/authserver.rc b/src/server/authserver/authserver.rc index f4e93642c5c..fde1be5061e 100755 --- a/src/server/authserver/authserver.rc +++ b/src/server/authserver/authserver.rc @@ -53,31 +53,36 @@ 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", "authserver" - VALUE "FileVersion", STRFILEVER - VALUE "InternalName", "authserver" - VALUE "LegalCopyright", "Copyright (C) 2008-2010" - VALUE "OriginalFilename", "authserver.exe" - VALUE "ProductName", "authserver" - VALUE "ProductVersion", STRPRODUCTVER + VALUE "CompanyName", VER_COMPANYNAME_STR + VALUE "FileDescription", "TrinityCore Authentication Server Daemon" + VALUE "FileVersion", VER_FILEVERSION_STR + VALUE "InternalName", "authserver" + VALUE "LegalCopyright", VER_LEGALCOPYRIGHT_STR + VALUE "OriginalFilename", "authserver.exe" + VALUE "ProductName", "TrinityCore Authentication Server" + VALUE "ProductVersion", VER_PRODUCTVERSION_STR END END + BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x800, 1200 -- cgit v1.2.3