2017-12-21 19:36:56 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-06-03 16:10:20 +02:00
|
|
|
# Prepare environment variable
|
2018-01-16 00:13:08 +01:00
|
|
|
export GTA5VIEW_EXECUTABLE=gta5view-${EXECUTABLE_VERSION}${EXECUTABLE_ARCH}.exe && \
|
2017-12-21 19:36:56 +01:00
|
|
|
|
|
|
|
# Creating folders
|
2018-01-16 00:13:08 +01:00
|
|
|
cd ${PROJECT_DIR} && \
|
|
|
|
echo "gta5view build version is ${APPLICATION_VERSION}" && \
|
|
|
|
echo "gta5view executable is ${GTA5VIEW_EXECUTABLE}" && \
|
2018-01-18 00:31:21 +01:00
|
|
|
mkdir -p build && \
|
|
|
|
mkdir -p assets && \
|
2017-12-21 19:36:56 +01:00
|
|
|
|
|
|
|
# Starting build
|
|
|
|
cd build && \
|
2018-11-18 18:08:18 +01:00
|
|
|
qmake-static ${QMAKE_FLAGS_QT5} ${QMAKE_BUILD_TYPE} "DEFINES+=GTA5SYNC_BUILDCODE=\\\\\\\"${PACKAGE_CODE}\\\\\\\"" "DEFINES+=GTA5SYNC_APPVER=\\\\\\\"${APPLICATION_VERSION}\\\\\\\"" "DEFINES+=GTA5SYNC_COMMIT=\\\\\\\"${APPLICATION_COMMIT}\\\\\\\"" DEFINES+=GTA5SYNC_TELEMETRY "DEFINES+=GTA5SYNC_TELEMETRY_WEBURL=\\\\\\\"https://dev.syping.de/gta5view-userstats/\\\\\\\"" DEFINES+=GTA5SYNC_DONATION "DEFINES+=GTA5SYNC_DONATION_EMAIL=\\\\\\\"paypal/at/syping.de\\\\\\\"" ../gta5view.pro && \
|
2018-06-09 21:16:33 +02:00
|
|
|
make depend && \
|
2017-12-21 19:36:56 +01:00
|
|
|
make -j 4 && \
|
2018-01-16 00:13:08 +01:00
|
|
|
cp -Rf release/*.exe ${PROJECT_DIR}/assets/${GTA5VIEW_EXECUTABLE} && \
|
2019-07-24 19:10:14 +02:00
|
|
|
cd ${PROJECT_DIR}/assets
|