This commit is contained in:
parent
fcbe264d63
commit
6af5f94d70
23 changed files with 53 additions and 16407 deletions
|
@ -2,7 +2,7 @@ kind: pipeline
|
|||
type: docker
|
||||
|
||||
environment:
|
||||
BUILD_TYPE: "REL"
|
||||
BUILD_TYPE: "DEV"
|
||||
|
||||
steps:
|
||||
- name: Windows Installer
|
||||
|
|
|
@ -2,7 +2,7 @@ stages:
|
|||
- build
|
||||
|
||||
variables:
|
||||
BUILD_TYPE: "REL"
|
||||
BUILD_TYPE: "DEV"
|
||||
|
||||
Windows Installer:
|
||||
stage: build
|
||||
|
|
|
@ -8,7 +8,7 @@ service:
|
|||
|
||||
env:
|
||||
global:
|
||||
- BUILD_TYPE=REL
|
||||
- BUILD_TYPE=DEV
|
||||
|
||||
matrix:
|
||||
include:
|
||||
|
|
|
@ -11,13 +11,20 @@ set(CMAKE_AUTORCC ON)
|
|||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
find_package(Qt5 COMPONENTS Network Svg Widgets REQUIRED)
|
||||
find_package(Qt5 COMPONENTS LinguistTools QUIET)
|
||||
option(QT6_BUILD "Build gta5view with Qt6" OFF)
|
||||
if(QT6_BUILD)
|
||||
set(QT_VERSION_MAJOR 6)
|
||||
else()
|
||||
set(QT_VERSION_MAJOR 5)
|
||||
endif()
|
||||
|
||||
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Network Svg Widgets REQUIRED)
|
||||
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS LinguistTools QUIET)
|
||||
|
||||
if(WIN32)
|
||||
find_package(Qt5 COMPONENTS WinExtras REQUIRED)
|
||||
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS WinExtras REQUIRED)
|
||||
list(APPEND GTA5VIEW_LIBS
|
||||
Qt5::WinExtras
|
||||
Qt${QT_VERSION_MAJOR}::WinExtras
|
||||
)
|
||||
list(APPEND GTA5VIEW_DEFINES
|
||||
-DUNICODE
|
||||
|
@ -179,7 +186,7 @@ if(QCONF_BUILD)
|
|||
else()
|
||||
list(APPEND GTA5VIEW_RESOURCES
|
||||
res/tr_g5p.qrc
|
||||
res/tr_qt5.qrc
|
||||
res/tr_qt${QT_VERSION_MAJOR}.qrc
|
||||
)
|
||||
endif()
|
||||
|
||||
|
@ -194,6 +201,7 @@ endif()
|
|||
|
||||
option(WITH_MOTD "Developer message system directed to users" OFF)
|
||||
if(WITH_MOTD)
|
||||
set(MOTD_WEBURL "" CACHE STRING "Messages WebURL")
|
||||
list(APPEND GTA5VIEW_HEADERS
|
||||
MessageThread.h
|
||||
)
|
||||
|
@ -212,6 +220,11 @@ endif()
|
|||
|
||||
option(WITH_TELEMETRY "Hardware survey and basic telemetry system" OFF)
|
||||
if(WITH_TELEMETRY)
|
||||
set(TELEMETRY_AUTHID "" CACHE STRING "Telemetry AuthID")
|
||||
set(TELEMETRY_AUTHPW "" CACHE STRING "Telemetry AuthPW")
|
||||
set(TELEMETRY_PUSHURL "" CACHE STRING "Telemetry PushURL")
|
||||
set(TELEMETRY_REGURL "" CACHE STRING "Telemetry RegURL")
|
||||
set(TELEMETRY_WEBURL "" CACHE STRING "Telemetry WebURL")
|
||||
list(APPEND GTA5VIEW_HEADERS
|
||||
TelemetryClass.h
|
||||
tmext/TelemetryClassAuthenticator.h
|
||||
|
@ -332,11 +345,13 @@ endif()
|
|||
|
||||
if(Qt5Core_VERSION VERSION_GREATER_EQUAL "5.14.0")
|
||||
qt5_import_plugins(gta5view INCLUDE Qt5::QSvgPlugin)
|
||||
elseif(Qt6Core_VERSION VERSION_GREATER_EQUAL "6.0")
|
||||
qt6_import_plugins(gta5view INCLUDE Qt6::QSvgPlugin)
|
||||
endif()
|
||||
|
||||
target_compile_definitions(gta5view PRIVATE ${GTA5VIEW_DEFINES})
|
||||
target_include_directories(gta5view PRIVATE ${GTA5VIEW_INCLUDEDIR})
|
||||
target_link_libraries(gta5view PRIVATE Qt5::Network Qt5::Svg Qt5::Widgets ${GTA5VIEW_LIBS})
|
||||
target_link_libraries(gta5view PRIVATE Qt${QT_VERSION_MAJOR}::Network Qt${QT_VERSION_MAJOR}::Svg Qt${QT_VERSION_MAJOR}::Widgets ${GTA5VIEW_LIBS})
|
||||
|
||||
install(TARGETS gta5view DESTINATION bin)
|
||||
install(FILES res/de.syping.gta5view.desktop DESTINATION share/applications)
|
||||
|
|
2
config.h
2
config.h
|
@ -44,7 +44,7 @@
|
|||
#endif
|
||||
|
||||
#ifndef GTA5SYNC_APPVER
|
||||
#define GTA5SYNC_APPVER "1.8.0"
|
||||
#define GTA5SYNC_APPVER "1.9.0"
|
||||
#endif
|
||||
|
||||
#if __cplusplus
|
||||
|
|
|
@ -217,6 +217,10 @@ isEqual(QT_MAJOR_VERSION, 5): RESOURCES += res/tr_qt5.qrc
|
|||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): GTA5SYNC_RCC = $$[QT_HOST_BINS]/rcc
|
||||
|
||||
# QT6 ONLY STUFF
|
||||
|
||||
isEqual(QT_MAJOR_VERSION, 6): RESOURCES += res/tr_qt6.qrc
|
||||
|
||||
# RESOURCE COMPILATION
|
||||
|
||||
system($$GTA5SYNC_RCC -threshold 0 -compress 9 $$PWD/res/global.qrc -o $$OUT_PWD/qrc_global.cpp) {
|
||||
|
@ -241,6 +245,7 @@ INSTALLS += target pixmaps appfiles
|
|||
contains(DEFINES, GTA5SYNC_QCONF) {
|
||||
isEqual(QT_MAJOR_VERSION, 4): RESOURCES -= res/tr_qt4.qrc
|
||||
isEqual(QT_MAJOR_VERSION, 5): RESOURCES -= res/tr_qt5.qrc
|
||||
isEqual(QT_MAJOR_VERSION, 6): RESOURCES -= res/tr_qt6.qrc
|
||||
!contains(DEFINES, GTA5SYNC_QCONF_IN) {
|
||||
RESOURCES -= res/tr_g5p.qrc
|
||||
langfiles.path = $$GTA5SYNC_PREFIX/share/gta5view/translations
|
||||
|
|
|
@ -4,8 +4,8 @@ IDI_ICON1 ICON DISCARDABLE "5sync.ico"
|
|||
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "gta5view.exe.manifest"
|
||||
#include <windows.h>
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1, 8, 0, 0
|
||||
PRODUCTVERSION 1, 8, 0, 0
|
||||
FILEVERSION 1, 9, 0, 0
|
||||
PRODUCTVERSION 1, 9, 0, 0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
FILEFLAGS 0
|
||||
FILEOS VOS_NT_WINDOWS32
|
||||
|
@ -22,12 +22,12 @@ BEGIN
|
|||
BEGIN
|
||||
VALUE "CompanyName", "Syping"
|
||||
VALUE "FileDescription", "gta5view"
|
||||
VALUE "FileVersion", "1.8.0"
|
||||
VALUE "FileVersion", "1.9.0"
|
||||
VALUE "InternalName", "gta5view"
|
||||
VALUE "LegalCopyright", "Copyright © 2016-2020 Syping"
|
||||
VALUE "OriginalFilename", "gta5view.exe"
|
||||
VALUE "ProductName", "gta5view"
|
||||
VALUE "ProductVersion", "1.8.0"
|
||||
VALUE "ProductVersion", "1.9.0"
|
||||
END
|
||||
END
|
||||
END
|
||||
|
|
BIN
res/qt6/qtbase_de.qm
Normal file
BIN
res/qt6/qtbase_de.qm
Normal file
Binary file not shown.
BIN
res/qt6/qtbase_fr.qm
Normal file
BIN
res/qt6/qtbase_fr.qm
Normal file
Binary file not shown.
BIN
res/qt6/qtbase_ko.qm
Normal file
BIN
res/qt6/qtbase_ko.qm
Normal file
Binary file not shown.
BIN
res/qt6/qtbase_ru.qm
Normal file
BIN
res/qt6/qtbase_ru.qm
Normal file
Binary file not shown.
BIN
res/qt6/qtbase_uk.qm
Normal file
BIN
res/qt6/qtbase_uk.qm
Normal file
Binary file not shown.
BIN
res/qt6/qtbase_zh_TW.qm
Normal file
BIN
res/qt6/qtbase_zh_TW.qm
Normal file
Binary file not shown.
Binary file not shown.
16389
res/qtbase_en_GB.ts
16389
res/qtbase_en_GB.ts
File diff suppressed because it is too large
Load diff
|
@ -1,11 +1,11 @@
|
|||
<RCC>
|
||||
<qresource prefix="/tr">
|
||||
<file>qtbase_en_GB.qm</file>
|
||||
<file>qtbase_de.qm</file>
|
||||
<file>qtbase_fr.qm</file>
|
||||
<file>qtbase_ko.qm</file>
|
||||
<file>qtbase_ru.qm</file>
|
||||
<file>qtbase_uk.qm</file>
|
||||
<file>qtbase_zh_TW.qm</file>
|
||||
<file>qt5/qtbase_de.qm</file>
|
||||
<file>qt5/qtbase_fr.qm</file>
|
||||
<file>qt5/qtbase_ko.qm</file>
|
||||
<file>qt5/qtbase_ru.qm</file>
|
||||
<file>qt5/qtbase_uk.qm</file>
|
||||
<file>qt5/qtbase_zh_TW.qm</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
11
res/tr_qt6.qrc
Normal file
11
res/tr_qt6.qrc
Normal file
|
@ -0,0 +1,11 @@
|
|||
<RCC>
|
||||
<qresource prefix="/tr">
|
||||
<file>qtbase_en_GB.qm</file>
|
||||
<file>qt6/qtbase_de.qm</file>
|
||||
<file>qt6/qtbase_fr.qm</file>
|
||||
<file>qt6/qtbase_ko.qm</file>
|
||||
<file>qt6/qtbase_ru.qm</file>
|
||||
<file>qt6/qtbase_uk.qm</file>
|
||||
<file>qt6/qtbase_zh_TW.qm</file>
|
||||
</qresource>
|
||||
</RCC>
|
Loading…
Reference in a new issue