add Telemetry to GitLab build

This commit is contained in:
Syping 2018-06-22 19:00:36 +02:00
parent efa88cc46e
commit d61cbd4743
3 changed files with 8 additions and 4 deletions

View file

@ -1,17 +1,17 @@
image: syping/qt5-static-mingw:5.9.6 image: syping/qt5-static-mingw:5.9.6
job 0: win32:
variables: variables:
BUILD_SCRIPT: "windows_build.sh" BUILD_SCRIPT: "windows_build.sh"
QT_SELECT: "qt5-i686-w64-mingw32" QT_SELECT: "qt5-i686-w64-mingw32"
script: script:
- .gitlab/gitlab.sh - .gitlab/gitlab.sh
artifacts: artifacts:
name: "$CI_COMMIT_REF_NAME-win32" name: "gta5view-$CI_COMMIT_REF_NAME-win32"
paths: paths:
- assets/ - assets/
job 1: win64:
variables: variables:
BUILD_SCRIPT: "windows_build.sh" BUILD_SCRIPT: "windows_build.sh"
QT_SELECT: "qt5-x86_64-w64-mingw32" QT_SELECT: "qt5-x86_64-w64-mingw32"
@ -19,6 +19,6 @@ job 1:
script: script:
- .gitlab/gitlab.sh - .gitlab/gitlab.sh
artifacts: artifacts:
name: "$CI_COMMIT_REF_NAME-win64" name: "gta5view-$CI_COMMIT_REF_NAME-win64"
paths: paths:
- assets/ - assets/

Binary file not shown.

View file

@ -4,6 +4,10 @@
apt-get update -qq && \ apt-get update -qq && \
apt-get install -qq curl git lua5.2 openssl apt-get install -qq curl git lua5.2 openssl
# Decrypt Telemetry Authenticator
rm -rf tmext/TelemetryClassAuthenticator.cpp && \
openssl aes-256-cbc -k $tca_pass -in .gitlab/TelemetryClassAuthenticator.cpp.enc -out tmext/TelemetryClassAuthenticator.cpp -d
# Check if build is not tagged # Check if build is not tagged
if [ "${CI_COMMIT_TAG}" == "" ]; then if [ "${CI_COMMIT_TAG}" == "" ]; then
export EXECUTABLE_TAG=-$(git rev-parse --short HEAD) export EXECUTABLE_TAG=-$(git rev-parse --short HEAD)