diff --git a/Server/tewi.rc b/Server/tewi.rc index e021640..8210060 100644 --- a/Server/tewi.rc +++ b/Server/tewi.rc @@ -1,11 +1,28 @@ +#include +#include "tw_version.h" + id ICON "./tewi.ico" VS_VERSION_INFO VERSIONINFO + FILEVERSION 1,0,0,0 + PRODUCTVERSION 1,0,0,0 BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904E4" BEGIN + VALUE "CompanyName", "Nishi\0" + VALUE "FileDescription", "Simple HTTP Daemon\0" + VALUE "LegalCopyright", "Public domain, original by Nishi\0" + VALUE "FileVersion", TW_VERSION + VALUE "ProductVersion", TW_VERSION VALUE "ProductName", "Tewi HTTPd\0" + VALUE "License", "Unlicense\0" + VALUE "Info", "http://nishi.boats/tewi\0" END END + + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 65001 + END END diff --git a/Server/tw_version.h b/Server/tw_version.h index 3dc7dbd..568ed38 100644 --- a/Server/tw_version.h +++ b/Server/tw_version.h @@ -3,6 +3,8 @@ #ifndef __TW_VERSION_H__ #define __TW_VERSION_H__ +#define TW_VERSION "1.00\0" + const char* tw_get_version(void); const char* tw_get_platform(void); diff --git a/Server/version.c b/Server/version.c index 8c753e8..a3df63b 100644 --- a/Server/version.c +++ b/Server/version.c @@ -4,7 +4,7 @@ #include "tw_version.h" -const char* tw_version = "1.00"; +const char* tw_version = TW_VERSION; const char* tw_platform = #if defined(PLATFORM)