From 95f48fd05818c0a1a5356dbbb0a05345d26d12d8 Mon Sep 17 00:00:00 2001 From: XMRig Date: Wed, 19 Apr 2017 20:52:00 +0300 Subject: [PATCH] Add app.rc and app.ico for Windows. --- CMakeLists.txt | 2 +- version.h | 1 + win/app.ico | Bin 0 -> 15086 bytes win/app.rc | 37 +++++++++++++++++++++++++++++++++++++ 4 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 win/app.ico create mode 100644 win/app.rc 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 0000000000000000000000000000000000000000..7ab97bae0c63f05432da3e4bcdb12072d2700fe4 GIT binary patch literal 15086 zcmeHOeQ1@}8GqC3RkJKro2JgWE|IL=M5LviwNPYsYhZ2E7{8*%YWzrUlG`LE={0UK zw819rj9s+S!0aFGDAI|Gr55WSA~J%6AR0C z7)B2Y{0e2DVpJnhKK;Foa_XOyGAGk?;lhPbU0q$tjvYHHw{G2f6zQ)O6&07ZY}s;^ z(#DM&FCy<_q_e?XPc`XKE}XPPW`pHxq12K&6_`W zOBkoK_U&S>H1@mUBDMpE4r|0De4m}|CFR#tX< zsiPlQ{NvlVZ*Sqch7a$$`H%_!rH5oyVVjKU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tOz{Er;7vH+$i=-)8fw9 zEEl(l71&qJItRkWUO)-sI7x~F#>TAG1;*Gx`0Z=o4CBH)YLn)E;kRCBpAj&8mlo@^`UOAqCUsKf!fJ9 z`pqcvt^o6W?3b0T>Gi(vr0xgI^fT>K(6&S|67N&2#s8YAf96=wZ>+0JFvse~I_DbF zcrsl>9{rzKky@Ugv9=DQ4BdNuz;jiNe1I}tn9HTL8>~;mSf75WDX-m^K-mGa4csM< znYiAwvx71dTn;*xGg0yd^U-#bKK)Nc${x5|bTHR0$9%UF{h>zDp8&=xq?gzR>*G6A zPdd;oL;I)mN{M!N)1;r!<=CY6`-5>k7h}^EJ*L$Ul)Z%UFKr%AHi!rL;$SBZ+&)#8d62~U_e$6~iF!r7h%+U{=CbtLFu*T^^j~o5!gc@v literal 0 HcmV?d00001 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 +