Skip to content

Commit

Permalink
Add VERSIONINFO resources
Browse files Browse the repository at this point in the history
  • Loading branch information
taviso committed Dec 29, 2016
1 parent 39bd1ce commit 70b31d3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
25 changes: 25 additions & 0 deletions version.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#include <windows.h>

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
}
}

0 comments on commit 70b31d3

Please sign in to comment.