2018-06-22 17:25:27 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-06-22 19:00:36 +02:00
|
|
|
# Decrypt Telemetry Authenticator
|
|
|
|
rm -rf tmext/TelemetryClassAuthenticator.cpp && \
|
2020-06-07 20:30:53 +02:00
|
|
|
openssl aes-256-cbc -k ${tca_pass} -in .gitlab/TelemetryClassAuthenticator.cpp.enc -out tmext/TelemetryClassAuthenticator.cpp -d
|
2018-06-22 19:00:36 +02:00
|
|
|
|
2018-06-22 17:25:27 +02:00
|
|
|
# Check if build is not tagged
|
|
|
|
if [ "${CI_COMMIT_TAG}" == "" ]; then
|
|
|
|
export EXECUTABLE_TAG=-$(git rev-parse --short HEAD)
|
|
|
|
else
|
|
|
|
export EXECUTABLE_TAG=
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Check if package code is not set
|
|
|
|
if [ "${PACKAGE_CODE}" == "" ]; then
|
|
|
|
export PACKAGE_CODE=GitLab
|
|
|
|
fi
|
|
|
|
|
2018-07-13 12:07:13 +02:00
|
|
|
# Init Application Commit Hash
|
|
|
|
export APPLICATION_COMMIT=$(git rev-parse --short HEAD)
|
|
|
|
|
2018-06-28 03:31:57 +02:00
|
|
|
# Start CI script and copying assets into base directory
|
|
|
|
.ci/ci.sh && \
|
|
|
|
cp -Rf assets/* ./
|