From 70b31d33b2548e69152abac4efefef55aeaee21a Mon Sep 17 00:00:00 2001 From: Tavis Ormandy Date: Thu, 29 Dec 2016 15:52:06 +0000 Subject: [PATCH] Add VERSIONINFO resources --- Makefile | 8 +++++--- version.rc | 25 +++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 version.rc diff --git a/Makefile b/Makefile index a56c8fe..c95e232 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,11 @@ -CFLAGS=/Ox +CFLAGS=/nologo /O2 +RFLAGS=/nologo /n -hotcorner.exe: hotcorner.obj +hotcorner.exe: hotcorner.obj version.res + $(CC) $(CFLAGS) /Fe:$(@F) $** clean: - del *.obj hotcorner.exe + del *.obj *.res hotcorner.exe install: hotcorner.exe copy hotcorner.exe "%USERPROFILE%\Start Menu\Programs\Startup" diff --git a/version.rc b/version.rc new file mode 100644 index 0000000..48db2d2 --- /dev/null +++ b/version.rc @@ -0,0 +1,25 @@ +#include + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 1,0,0,0 + PRODUCTVERSION 1,0,0,0 + FILEFLAGSMASK VS_FFI_FILEFLAGSMASK + FILEFLAGS 0 + FILEOS VOS__WINDOWS32 + FILETYPE VFT_APP +{ + BLOCK "StringFileInfo" + { + BLOCK "000004b0" + { + VALUE "CompanyName", "Tavis Ormandy" + VALUE "FileDescription", "Hot Corner for Windows 10" + VALUE "ProductName", "Hot Corner" + VALUE "Comment", "https://github.com/taviso/hotcorner" + } + } + BLOCK "VarFileInfo" + { + VALUE "Translation", 0, 1200 + } +}