29 lines
973 B
Bash
Executable file
29 lines
973 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# 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 \
|
|
"${CMAKE_BUILD_TYPE}" \
|
|
"-DGTA5VIEW_BUILDCODE=${PACKAGE_CODE}" \
|
|
"-DGTA5VIEW_APPVER=${APPLICATION_VERSION}" \
|
|
"-DGTA5VIEW_COMMIT=${APPLICATION_COMMIT}" \
|
|
"-DWITH_DONATE=ON" \
|
|
"-DWITH_TELEMETRY=ON" \
|
|
"-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" \
|
|
.. && \
|
|
make -j 4 && \
|
|
x86_64-w64-mingw32-strip -s gta5view.exe && \
|
|
cd ${PROJECT_DIR}/assets && \
|
|
makensis "-XTarget amd64-unicode" -NOCD ${PROJECT_DIR}/.ci/gta5view.nsi && \
|
|
mv -f gta5view_setup.exe gta5view-${EXECUTABLE_VERSION}_setup.exe
|