Add correct version numbers to the Windows resource file

For the numeric fields, this means we get to treat all X.Y.Z versions as
X.Y.Z.0, and there's no string suffix for those for obvious reasons. Not
that anyone cares, really.

Now we get a pretty name for our client process in the Task Manager too,
hooray!

(Also cleaned-up some of the placeholder code that was left here by
loonycyborg.)
This commit is contained in:
Ignacio R. Morelle 2015-07-16 20:04:19 -04:00
parent e2aa9d4239
commit 7465f04e0a

View file

@ -1,28 +1,27 @@
#include "windows.h" #include "windows.h"
#include "../../src/wesconfig.h"
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "wesnoth.exe.manifest" CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "wesnoth.exe.manifest"
WESNOTH_ICON ICON "wesnoth-icon.ico" WESNOTH_ICON ICON "wesnoth-icon.ico"
//TODO: figure out the best way to get actual version numbers VS_VERSION_INFO VERSIONINFO
VS_VERSION_INFO VERSIONINFO FILEVERSION RC_VERSION_MAJOR, RC_VERSION_MINOR, RC_VERSION_REVISION, 0
FILEVERSION 0,0,0,0 PRODUCTVERSION RC_VERSION_MAJOR, RC_VERSION_MINOR, RC_VERSION_REVISION, 0
PRODUCTVERSION 0,0,0,0 FILEOS VOS__WINDOWS32
FILEOS VOS__WINDOWS32 FILETYPE VFT_APP
FILETYPE VFT_APP
FILESUBTYPE VFT2_UNKNOWN
BEGIN BEGIN
BLOCK "StringFileInfo" BLOCK "StringFileInfo"
BEGIN BEGIN
BLOCK "040904b0" BLOCK "040904b0"
BEGIN BEGIN
VALUE "CompanyName", "\0" VALUE "FileDescription", "Wesnoth Game Client\0"
VALUE "FileDescription", "Wesnoth\0" VALUE "InternalName", "wesnoth\0"
VALUE "FileVersion", "0, 0, 0, 0\0" VALUE "OriginalFilename", "wesnoth.exe\0"
VALUE "InternalName", "Wesnoth\0" VALUE "FileVersion", VERSION "\0"
VALUE "LegalCopyright", "Copyright (C) 2003 - 2015 David White\0" VALUE "ProductVersion", VERSION "\0"
VALUE "OriginalFilename", "wesnoth.exe\0" VALUE "ProductName", "The Battle for Wesnoth\0"
VALUE "ProductName", "Battle for Wesnoth\0" VALUE "CompanyName", "The Battle for Wesnoth Project\0"
VALUE "ProductVersion", "0, 0, 0, 0\0" VALUE "LegalCopyright", "(C) The Battle for Wesnoth Project\0"
END END
END END
BLOCK "VarFileInfo" BLOCK "VarFileInfo"