Fill more Win exe's properties.

This commit is contained in:
Gres 2015-11-02 20:48:52 +03:00
parent 4f8958b9c6
commit 83ed896b93
2 changed files with 47 additions and 3 deletions

View File

@ -13,7 +13,6 @@ TEMPLATE = app
CONFIG += c++11
win32{
RC_FILE = app.rc
INCLUDEPATH += $$PWD/../build/mingw/deps/include
LIBS += -L$$PWD/../build/mingw/deps/lib -lws2_32
}
@ -80,9 +79,14 @@ OTHER_FILES += \
translators/* \
scripts/* \
distr/* \
app.rc \
version.json \
README.md \
uncrustify.cfg\
.travis.yml \
TODO.md
QMAKE_TARGET_COMPANY = Gres
QMAKE_TARGET_PRODUCT = Screen Translator
QMAKE_TARGET_COPYRIGHT = Copyright (c) Gres
VERSION = 2.0.0.0
RC_ICONS = images/icon.ico

42
app.rc
View File

@ -1 +1,41 @@
IDI_ICON1 ICON DISCARDABLE "images/icon.ico"
IDI_ICON1 ICON DISCARDABLE "images/icon.ico"
#include <windows.h>
#define VER_FILEVERSION 2,0,0
#define VER_FILEVERSION_STR "2.0.0\0"
#define VER_PRODUCTVERSION 2,0,0
#define VER_PRODUCTVERSION_STR "2.0.0\0"
#define VER_PRODUCTNAME_STR "Screen Translator\0"
#define VER_FILEDESCRIPTION_STR "Screen Translator executable\0"
#define VER_LEGALCOPYRIGHT_STR "Copyright © 2015\0"
#define VER_INTERNALNAME_STR "ScreenTranslator\0"
#define VER_ORIGINALFILENAME_STR "ScreenTranslator.exe\0"
#define VER_COMMENT_STR "Screen capture, OCR and translation tool\0"
#define VER_COMMPANYNAME_STR "Gres\0"
VS_VERSION_INFO VERSIONINFO
FILEVERSION VER_FILEVERSION
PRODUCTVERSION VER_PRODUCTVERSION
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "FileDescription", VER_FILEDESCRIPTION_STR
VALUE "FileVersion", VER_FILEVERSION_STR
VALUE "LegalCopyright", VER_LEGALCOPYRIGHT_STR
VALUE "InternalName", VER_INTERNALNAME_STR
VALUE "OriginalFilename", VER_ORIGINALFILENAME_STR
VALUE "ProductName", VER_PRODUCTNAME_STR
VALUE "ProductVersion", VER_PRODUCTVERSION_STR
VALUE "Comments", VER_COMMENT_STR
VALUE "CompanyName", VER_COMMPANYNAME_STR
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END