diff --git a/CMakeLists.txt b/CMakeLists.txt index f0d23e0e..f30e9ee6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,7 +59,7 @@ set(SOURCES_UTILS ) if (WIN32) - set(SOURCES_OS win/cpu_win.c win/memory_win.c win/xmrig_win.c compat/winansi.c) + set(SOURCES_OS win/cpu_win.c win/memory_win.c win/xmrig_win.c win/app.rc compat/winansi.c) set(EXTRA_LIBS ws2_32) add_definitions(/D_WIN32_WINNT=0x600) else() diff --git a/version.h b/version.h index 40294cb7..074f4eb2 100644 --- a/version.h +++ b/version.h @@ -26,6 +26,7 @@ #define APP_ID "xmrig" #define APP_NAME "XMRig" +#define APP_DESC "Monero (XMR) CPU miner" #define APP_VERSION "0.5.0" #define APP_DOMAIN "xmrig.com" #define APP_SITE "www.xmrig.com" diff --git a/win/app.ico b/win/app.ico new file mode 100644 index 00000000..7ab97bae Binary files /dev/null and b/win/app.ico differ diff --git a/win/app.rc b/win/app.rc new file mode 100644 index 00000000..cb47aa3c --- /dev/null +++ b/win/app.rc @@ -0,0 +1,37 @@ +#include +#include "../version.h" + +IDI_ICON1 ICON DISCARDABLE "app.ico" + +VS_VERSION_INFO VERSIONINFO + FILEVERSION APP_VER_MAJOR,APP_VER_MINOR,APP_VER_BUILD,APP_VER_REV + PRODUCTVERSION APP_VER_MAJOR,APP_VER_MINOR,APP_VER_BUILD,APP_VER_REV + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS VS_FF_DEBUG +#else + FILEFLAGS 0x0L +#endif + FILEOS VOS__WINDOWS32 + FILETYPE VFT_APP + FILESUBTYPE 0x0L + BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "000004b0" + BEGIN + VALUE "CompanyName", APP_SITE + VALUE "FileDescription", APP_DESC + VALUE "FileVersion", APP_VERSION + VALUE "LegalCopyright", APP_COPYRIGHT + VALUE "OriginalFilename", "xmrig.exe" + VALUE "ProductName", APP_NAME + VALUE "ProductVersion", APP_VERSION + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0, 1200 + END + END +