2017-12-21 19:36:56 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-11-30 13:19:42 +01:00
|
|
|
DOCKER_IMAGE=sypingauto/gta5view-build:1.9-static
|
2017-12-23 07:48:01 +01:00
|
|
|
PROJECT_DIR_DOCKER=/gta5view
|
2017-12-21 19:36:56 +01:00
|
|
|
|
2018-01-16 00:13:08 +01:00
|
|
|
cd ${PROJECT_DIR} && \
|
|
|
|
docker pull ${DOCKER_IMAGE} && \
|
2017-12-21 19:36:56 +01:00
|
|
|
docker run --rm \
|
|
|
|
-v "${PROJECT_DIR}:${PROJECT_DIR_DOCKER}" \
|
2018-01-16 00:13:08 +01:00
|
|
|
${DOCKER_IMAGE} \
|
2020-08-30 18:48:33 +02:00
|
|
|
/bin/bash -c "export PROJECT_DIR=${PROJECT_DIR_DOCKER} && export QT_SELECT=${QT_SELECT} && export APPLICATION_VERSION=${APPLICATION_VERSION} && export APPLICATION_COMMIT=${APPLICATION_COMMIT} && export BUILD_TYPE=${BUILD_TYPE} && export QMAKE_FLAGS_QT4=${QMAKE_FLAGS_QT4} && export QMAKE_FLAGS_QT5=${QMAKE_FLAGS_QT5} && export CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} && export QMAKE_BUILD_TYPE=${QMAKE_BUILD_TYPE} && export PACKAGE_VERSION=${PACKAGE_VERSION} && export PACKAGE_BUILD=${PACKAGE_BUILD} && export PACKAGE_CODE=${PACKAGE_CODE} && export EXECUTABLE_VERSION=${EXECUTABLE_VERSION} && export EXECUTABLE_ARCH=${EXECUTABLE_ARCH} && cd ${PROJECT_DIR_DOCKER} && .ci/windows_build.sh" && \
|
2018-06-03 16:10:20 +02:00
|
|
|
|
|
|
|
# Prepare environment variable
|
|
|
|
export GTA5VIEW_EXECUTABLE=gta5view-${EXECUTABLE_VERSION}${EXECUTABLE_ARCH}.exe && \
|
|
|
|
|
|
|
|
# Upload Assets to Dropbox
|
2018-07-28 04:55:55 +02:00
|
|
|
if [ "${PACKAGE_CODE}" == "gta5-mods" ]; then
|
2018-06-22 17:11:18 +02:00
|
|
|
${PROJECT_DIR}/.ci/dropbox_uploader.sh mkdir gta5-mods/${PACKAGE_VERSION}
|
|
|
|
${PROJECT_DIR}/.ci/dropbox_uploader.sh upload ${PROJECT_DIR}/assets/${GTA5VIEW_EXECUTABLE} gta5-mods/${PACKAGE_VERSION}/${GTA5VIEW_EXECUTABLE} && \
|
2020-10-11 17:53:45 +02:00
|
|
|
rm -rf ${GTA5VIEW_EXECUTABLE}
|
2020-04-24 05:36:11 +02:00
|
|
|
elif [ "${PACKAGE_CODE}" == "gtainside" ]; then
|
|
|
|
${PROJECT_DIR}/.ci/dropbox_uploader.sh mkdir gtainside/${PACKAGE_VERSION}
|
|
|
|
${PROJECT_DIR}/.ci/dropbox_uploader.sh upload ${PROJECT_DIR}/assets/${GTA5VIEW_EXECUTABLE} gtainside/${PACKAGE_VERSION}/${GTA5VIEW_EXECUTABLE} && \
|
2020-10-11 17:53:45 +02:00
|
|
|
rm -rf ${GTA5VIEW_EXECUTABLE}
|
2018-06-03 16:10:20 +02:00
|
|
|
fi
|