backported resource spliting

This commit is contained in:
Syping 2017-09-22 06:00:22 +02:00
parent 8a90ab7036
commit 69777a0263
9 changed files with 67 additions and 50 deletions

View file

@ -50,7 +50,7 @@
#ifndef GTA5SYNC_APPVER #ifndef GTA5SYNC_APPVER
#ifndef GTA5SYNC_DAILYB #ifndef GTA5SYNC_DAILYB
#define GTA5SYNC_APPVER "1.4.3" #define GTA5SYNC_APPVER "1.4.4"
#else #else
#define GTA5SYNC_APPVER QString("%1").arg(GTA5SYNC_DAILYB) #define GTA5SYNC_APPVER QString("%1").arg(GTA5SYNC_DAILYB)
#endif #endif

View file

@ -112,6 +112,7 @@ TRANSLATIONS += \
res/gta5sync_ru.ts res/gta5sync_ru.ts
RESOURCES += \ RESOURCES += \
res/tr_g5p.qrc \
res/app.qrc res/app.qrc
DISTFILES += res/app.rc \ DISTFILES += res/app.rc \
@ -119,8 +120,8 @@ DISTFILES += res/app.rc \
res/gta5sync_de.ts \ res/gta5sync_de.ts \
res/gta5sync_fr.ts \ res/gta5sync_fr.ts \
res/gta5sync_ru.ts \ res/gta5sync_ru.ts \
res/gta5sync.exe.manifest \ res/gta5view.exe.manifest \
res/gta5sync.png \ res/gta5view.png \
lang/README.txt lang/README.txt
INCLUDEPATH += ./uimod INCLUDEPATH += ./uimod
@ -155,6 +156,12 @@ isEqual(QT_MAJOR_VERSION, 4): SOURCES += qjson4/QJsonArray.cpp \
qjson4/QJsonValueRef.cpp \ qjson4/QJsonValueRef.cpp \
qjson4/QJsonParser.cpp qjson4/QJsonParser.cpp
isEqual(QT_MAJOR_VERSION, 4): RESOURCES += res/tr_qt4.qrc
# QT5 ONLY STUFF
isEqual(QT_MAJOR_VERSION, 5): RESOURCES += res/tr_qt5.qrc
# UNIX SYSTEM STUFF # UNIX SYSTEM STUFF
unix: !macx: appfiles.path = $$(INSTALL_PATH)/share/applications unix: !macx: appfiles.path = $$(INSTALL_PATH)/share/applications

View file

@ -1,15 +1,4 @@
<RCC> <RCC>
<qresource prefix="/tr">
<file>gta5sync_de.qm</file>
<file>qt_de.qm</file>
<file>qtbase_de.qm</file>
<file>gta5sync_fr.qm</file>
<file>qt_fr.qm</file>
<file>qtbase_fr.qm</file>
<file>gta5sync_ru.qm</file>
<file>qt_ru.qm</file>
<file>qtbase_ru.qm</file>
</qresource>
<qresource prefix="/img"> <qresource prefix="/img">
<file>savegame.png</file> <file>savegame.png</file>
<file>5sync-48.png</file> <file>5sync-48.png</file>

View file

@ -7,8 +7,8 @@ CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "gta5view.exe.manifest"
#include <windows.h> #include <windows.h>
VS_VERSION_INFO VERSIONINFO VS_VERSION_INFO VERSIONINFO
FILEVERSION 1, 4, 2, 0 FILEVERSION 1, 4, 4, 0
PRODUCTVERSION 1, 4, 2, 0 PRODUCTVERSION 1, 4, 4, 0
FILEFLAGSMASK 0x3fL FILEFLAGSMASK 0x3fL
FILEFLAGS 0 FILEFLAGS 0
FILEOS VOS_NT_WINDOWS32 FILEOS VOS_NT_WINDOWS32
@ -25,12 +25,12 @@ BEGIN
BEGIN BEGIN
VALUE "CompanyName", "Syping" VALUE "CompanyName", "Syping"
VALUE "FileDescription", "gta5view\0" VALUE "FileDescription", "gta5view\0"
VALUE "FileVersion", "1.4.2\0" VALUE "FileVersion", "1.4.4\0"
VALUE "InternalName", "gta5view\0" VALUE "InternalName", "gta5view\0"
VALUE "LegalCopyright", "Copyright © 2016-2017 Syping\0" VALUE "LegalCopyright", "Copyright © 2016-2017 Syping\0"
VALUE "OriginalFilename", "gta5view.exe\0" VALUE "OriginalFilename", "gta5view.exe\0"
VALUE "ProductName", "gta5view\0" VALUE "ProductName", "gta5view\0"
VALUE "ProductVersion", "1.4.2\0" VALUE "ProductVersion", "1.4.4\0"
END END
END END
END END

Binary file not shown.

Binary file not shown.

7
res/tr_g5p.qrc Normal file
View file

@ -0,0 +1,7 @@
<RCC>
<qresource prefix="/tr">
<file>gta5sync_de.qm</file>
<file>gta5sync_fr.qm</file>
<file>gta5sync_ru.qm</file>
</qresource>
</RCC>

7
res/tr_qt4.qrc Normal file
View file

@ -0,0 +1,7 @@
<RCC>
<qresource prefix="/tr">
<file>qt_de.qm</file>
<file>qt_fr.qm</file>
<file>qt_ru.qm</file>
</qresource>
</RCC>

7
res/tr_qt5.qrc Normal file
View file

@ -0,0 +1,7 @@
<RCC>
<qresource prefix="/tr">
<file>qtbase_de.qm</file>
<file>qtbase_fr.qm</file>
<file>qtbase_ru.qm</file>
</qresource>
</RCC>