diff --git a/jceGrade.pro b/jceGrade.pro index b90471c..33e64bc 100644 --- a/jceGrade.pro +++ b/jceGrade.pro @@ -9,10 +9,17 @@ QT += core gui network widgets CONFIG += qt c++11 TARGET = jceManager -TEMPLATE = app VERSION = 1.0.0 +TEMPLATE = app +DEFINES += APP_VERSION=\\\"$$VERSION\\\" + +win32 { +RC_FILE += winConf.rc +} +unix { +RC_FILE += appConfigure.rc +} -RC_FILE = appConfigure.rc TRANSLATIONS = jce_en.ts \ jce_he.ts diff --git a/main/main.cpp b/main/main.cpp index ef2dd6d..3f2c86b 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -5,7 +5,6 @@ #include "../src/appDatabase/savedata.h" #include "../src/appDatabase/jce_logger.h" - int main(int argc, char *argv[]) { #ifdef QT_DEBUG // Incase QtCreator is in Debug mode all qDebug messages will go to terminal @@ -36,6 +35,7 @@ int main(int argc, char *argv[]) qDebug() << "Local : English Local Loaded"; } a.installTranslator(&translator); //Setting local + a.setApplicationVersion(APP_VERSION); MainScreen w; w.show(); diff --git a/main/mainscreen.ui b/main/mainscreen.ui index fc522ca..b80a4fd 100644 --- a/main/mainscreen.ui +++ b/main/mainscreen.ui @@ -29,6 +29,9 @@ background: qlineargradient(spread:pad, x1:0.496, y1:0, x2:0.508, y2:1, stop:0 rgba(195, 231, 224, 218), stop:1 rgba(255, 255, 255, 255)); } + + + 48 @@ -641,7 +644,7 @@ font-size: 15px; 0 0 855 - 22 + 21 diff --git a/winConf.rc b/winConf.rc new file mode 100644 index 0000000..9046098 --- /dev/null +++ b/winConf.rc @@ -0,0 +1,31 @@ +IDI_ICON1 ICON DISCARDABLE "./resources/icon.ico" +#include + +VS_VERSION_INFO VERSIONINFO +FILEVERSION 1, 0, 0 +PRODUCTVERSION 1, 0, 0 +FILEFLAGSMASK 0x3fL +FILEFLAGS 0 +FILEOS VOS_NT_WINDOWS32 +FILETYPE VFT_APP +FILESUBTYPE VFT2_UNKNOWN +BEGIN + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", "Jce Manager\0" + VALUE "FileDescription", "\0" + VALUE "FileVersion", "1.0.0\0" + VALUE "InternalName", "jceManager\0" + VALUE "LegalCopyright", "Jce Manager Team, liranbg@gmail.com\0" + VALUE "OriginalFilename", "jceManager\0" + VALUE "ProductName", "Jce Manager\0" + VALUE "ProductVersion", "1.0.0\0" + END + END +END