1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-22 10:42:29 +01:00
This commit is contained in:
kelteseth 2018-11-11 16:19:51 +01:00
parent 114aebf8b5
commit 7c8d1ccd0d
3 changed files with 24 additions and 10 deletions

View File

@ -16,4 +16,4 @@ build:windows:
artifacts: artifacts:
expire_in: '2 hrs' expire_in: '2 hrs'
paths: paths:
- package/ - PACKAGE/

View File

@ -6,12 +6,11 @@ set root=%cd%
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsx86_amd64.bat" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsx86_amd64.bat"
mkdir package mkdir BUILD
cd package cd BUILD
echo "Begin build of ScreenPlay " echo "Begin build of ScreenPlay "
qmake.exe ../ScreenPlay.pro -spec win32-msvc "CONFIG+=release" qmake.exe ../ScreenPlay.pro -spec win32-msvc "CONFIG+=release"
jom.exe clean
jom.exe qmake_all jom.exe qmake_all
jom.exe -j8 jom.exe -j8
jom.exe install jom.exe install

View File

@ -1,15 +1,30 @@
setlocal EnableExtensions setlocal EnableExtensions
set PATH=%PATH%;C:\Qt\Tools\QtCreator\bin
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" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsx86_amd64.bat"
echo "Begin packaging" echo "Begin packaging"
xcopy "Shared" "package\Launcher" /s /y mkdir PACKAGE
cd BUILD
C:\Qt\5.11.2\msvc2017_64\bin\windeployqt.exe --release --qmldir Launcher/qml package/Launcher/DC-Launcher.exe xcopy /s ScreenPlay\release ..\PACKAGE
xcopy /s ScreenPlaySDK\release ..\PACKAGE
xcopy /s ScreenPlayWidget\release ..\PACKAGE
xcopy /s ScreenPlayWindow\release ..\PACKAGE
xcopy /s ScreenPlayWorkshop\release ..\PACKAGE
cd ..
windeployqt.exe --release --qmldir ScreenPlay/qml PACKAGE/ScreenPlay.exe
cd PACKAGE
del /f *.cpp
del /f *.h
del /f *.obj
del /f *.res
del /f package\PatchFileGenerator\*.cpp
del /f package\PatchFileGenerator\*.h
del /f package\PatchFileGenerator\*.obj
del /f package\PatchFileGenerator\*.res