2021-01-21 21:50:18 +01:00
|
|
|
#!/usr/bin/env bash
|
2018-01-17 22:19:27 +01:00
|
|
|
|
|
|
|
# Creating folders
|
|
|
|
cd ${PROJECT_DIR} && \
|
|
|
|
echo "gta5view build version is ${APPLICATION_VERSION}" && \
|
2018-01-18 20:41:58 +01:00
|
|
|
echo "gta5view image name is gta5view-osx_${APPLICATION_VERSION}.dmg" && \
|
2018-01-18 00:31:21 +01:00
|
|
|
mkdir -p build && \
|
|
|
|
mkdir -p assets && \
|
2018-01-17 22:19:27 +01:00
|
|
|
cd build && \
|
|
|
|
|
2021-01-28 18:39:42 +01:00
|
|
|
/usr/local/bin/cmake \
|
|
|
|
"-DCMAKE_PREFIX_PATH=/usr/local/opt/qt" \
|
|
|
|
"${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" \
|
2021-01-28 18:39:42 +01:00
|
|
|
"-DWITH_TELEMETRY=ON" \
|
2021-03-26 14:58:54 +01:00
|
|
|
"-DDONATE_ADDRESSES=$(cat ${PROJECT_DIR}/.ci/donate.txt)" \
|
2021-01-28 18:39:42 +01:00
|
|
|
"-DTELEMETRY_WEBURL=https://dev.syping.de/gta5view-userstats/" \
|
|
|
|
../ && \
|
2018-01-17 22:19:27 +01:00
|
|
|
make -j 4 && \
|
|
|
|
/usr/local/opt/qt/bin/macdeployqt gta5view.app -dmg && \
|
2018-01-18 20:41:58 +01:00
|
|
|
cp -Rf gta5view.dmg ../assets/gta5view-osx_${APPLICATION_VERSION}.dmg
|