2021-01-22 06:35:35 +01:00
|
|
|
#!/usr/bin/env bash
|
2018-02-06 11:26:20 +01:00
|
|
|
|
|
|
|
# Creating folders
|
|
|
|
cd ${PROJECT_DIR} && \
|
|
|
|
echo "gta5view build version is ${APPLICATION_VERSION}" && \
|
|
|
|
mkdir -p build && \
|
|
|
|
mkdir -p assets && \
|
|
|
|
|
|
|
|
# Starting build
|
|
|
|
cd build && \
|
2020-09-26 18:52:05 +02:00
|
|
|
mingw64-qt-cmake \
|
2021-01-22 06:35:35 +01:00
|
|
|
"${CMAKE_BUILD_TYPE}" \
|
2020-09-26 18:52:05 +02:00
|
|
|
"-DGTA5VIEW_BUILDCODE=${PACKAGE_CODE}" \
|
|
|
|
"-DGTA5VIEW_APPVER=${APPLICATION_VERSION}" \
|
|
|
|
"-DGTA5VIEW_COMMIT=${APPLICATION_COMMIT}" \
|
|
|
|
"-DWITH_TELEMETRY=ON" \
|
|
|
|
"-DTELEMETRY_WEBURL=https://dev.syping.de/gta5view-userstats/" \
|
|
|
|
"-DQCONF_BUILD=ON" \
|
|
|
|
"-DGTA5VIEW_INLANG=RUNDIR:SEPARATOR:lang" \
|
|
|
|
"-DGTA5VIEW_LANG=RUNDIR:SEPARATOR:lang" \
|
|
|
|
"-DGTA5VIEW_PLUG=RUNDIR:SEPARATOR:plugins" \
|
|
|
|
.. && \
|
2018-02-06 11:26:20 +01:00
|
|
|
make -j 4 && \
|
2020-09-26 21:18:55 +02:00
|
|
|
x86_64-w64-mingw32-strip -s gta5view.exe && \
|
2018-02-06 11:26:20 +01:00
|
|
|
cd ${PROJECT_DIR}/assets && \
|
2018-06-22 17:11:18 +02:00
|
|
|
makensis -NOCD ${PROJECT_DIR}/.ci/gta5view.nsi && \
|
2018-05-30 08:27:21 +02:00
|
|
|
mv -f gta5view_setup.exe gta5view-${EXECUTABLE_VERSION}_setup.exe
|