Browse Source

add Telemetry to GitLab build

1.6.x
Syping 3 years ago
parent
commit
d61cbd4743
  1. 8
      .gitlab-ci.yml
  2. BIN
      .gitlab/TelemetryClassAuthenticator.cpp.enc
  3. 4
      .gitlab/gitlab.sh

8
.gitlab-ci.yml

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

BIN
.gitlab/TelemetryClassAuthenticator.cpp.enc

Binary file not shown.

4
.gitlab/gitlab.sh

@ -4,6 +4,10 @@
apt-get update -qq && \
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
if [ "${CI_COMMIT_TAG}" == "" ]; then
export EXECUTABLE_TAG=-$(git rev-parse --short HEAD)

Loading…
Cancel
Save