mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-10-06 09:17:07 +02:00
Add bsic ci
This commit is contained in:
parent
05af5e8f41
commit
0fe9e65dd2
19
.gitlab-ci.yml
Normal file
19
.gitlab-ci.yml
Normal file
@ -0,0 +1,19 @@
|
||||
stages:
|
||||
- build
|
||||
|
||||
build:windows:
|
||||
stage: build
|
||||
tags:
|
||||
- vs2017
|
||||
- windows
|
||||
before_script:
|
||||
- git clean -xdf
|
||||
- git submodule sync --recursive
|
||||
- git submodule update --init --recursive
|
||||
script:
|
||||
- call scripts/build.bat
|
||||
- call scripts/package.bat
|
||||
artifacts:
|
||||
expire_in: '2 hrs'
|
||||
paths:
|
||||
- package/
|
15
scripts/build.bat
Normal file
15
scripts/build.bat
Normal file
@ -0,0 +1,15 @@
|
||||
setlocal EnableExtensions
|
||||
|
||||
set PATH=%PATH%;C:\Qt\Tools\QtCreator\bin
|
||||
set PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\Hostx64\x64
|
||||
set PATH=%PATH%;C:\Qt\5.11.2\msvc2017_64\bin
|
||||
set root=%cd%
|
||||
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsx86_amd64.bat"
|
||||
|
||||
echo "Begin build of ScreenPlay "
|
||||
cd ..
|
||||
qmake.exe ScreenPlay.pro -spec win32-msvc "CONFIG+=release"
|
||||
jom.exe -j8
|
||||
echo "Build ScreenPlay finished!"
|
||||
|
19
scripts/package.bat
Normal file
19
scripts/package.bat
Normal file
@ -0,0 +1,19 @@
|
||||
setlocal EnableExtensions
|
||||
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsx86_amd64.bat"
|
||||
|
||||
echo "Begin packaging"
|
||||
|
||||
|
||||
mkdir package
|
||||
cd package
|
||||
|
||||
xcopy "Shared" "package\Launcher" /s /y
|
||||
|
||||
C:\Qt\5.11.2\msvc2017_64\bin\windeployqt.exe --release --qmldir Launcher/qml package/Launcher/DC-Launcher.exe
|
||||
|
||||
|
||||
del /f package\PatchFileGenerator\*.cpp
|
||||
del /f package\PatchFileGenerator\*.h
|
||||
del /f package\PatchFileGenerator\*.obj
|
||||
del /f package\PatchFileGenerator\*.res
|
Loading…
Reference in New Issue
Block a user