gta5view/.ci/windows_build.sh

29 lines
899 B
Bash
Raw Normal View History

2021-01-22 06:35:35 +01:00
#!/usr/bin/env bash
2017-12-21 19:36:56 +01:00
2018-06-03 16:10:20 +02:00
# Prepare environment variable
export GTA5VIEW_EXECUTABLE=gta5view-${EXECUTABLE_VERSION}${EXECUTABLE_ARCH}.exe && \
2017-12-21 19:36:56 +01:00
# Creating folders
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 && \
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/" \
.. && \
2017-12-21 19:36:56 +01:00
make -j 4 && \
2020-09-26 21:18:55 +02:00
x86_64-w64-mingw32-strip -s gta5view.exe && \
cp -Rf *.exe ${PROJECT_DIR}/assets/${GTA5VIEW_EXECUTABLE} && \
2019-07-24 19:10:14 +02:00
cd ${PROJECT_DIR}/assets