gta5view/.ci/wininstall_build.sh

30 lines
973 B
Bash
Raw Normal View History

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 && \
mingw64-qt-cmake \
2021-01-22 06:35:35 +01:00
"${CMAKE_BUILD_TYPE}" \
"-DGTA5VIEW_BUILDCODE=${PACKAGE_CODE}" \
"-DGTA5VIEW_APPVER=${APPLICATION_VERSION}" \
"-DGTA5VIEW_COMMIT=${APPLICATION_COMMIT}" \
2021-03-26 14:58:54 +01:00
"-DWITH_DONATE=ON" \
"-DWITH_TELEMETRY=ON" \
2021-03-26 14:58:54 +01:00
"-DDONATE_ADDRESSES=$(cat ${PROJECT_DIR}/.ci/donate.txt)" \
"-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 && \
2021-05-27 04:08:37 +02:00
makensis "-XTarget amd64-unicode" -NOCD ${PROJECT_DIR}/.ci/gta5view.nsi && \
2018-05-30 08:27:21 +02:00
mv -f gta5view_setup.exe gta5view-${EXECUTABLE_VERSION}_setup.exe