1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 11:32:42 +01:00
ScreenPlay/scripts/package.bat

38 lines
861 B
Batchfile
Raw Normal View History

2018-11-08 21:08:33 +01:00
setlocal EnableExtensions
2018-11-11 16:19:51 +01:00
set PATH=%PATH%;C:\Qt\Tools\QtCreator\bin
set PATH=%PATH%;C:\Qt\5.14.0\msvc2017_64\bin
2018-11-11 16:19:51 +01:00
set root=%cd%
2018-11-08 21:08:33 +01:00
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsx86_amd64.bat"
echo "Begin packaging"
2018-11-11 16:19:51 +01:00
mkdir PACKAGE
cd BUILD
2018-11-11 17:52:04 +01:00
echo "Copy ScreenPlay"
xcopy /s /y ScreenPlay\release ..\PACKAGE
echo "Copy ScreenPlaySDK"
xcopy /s /y ScreenPlaySDK\release ..\PACKAGE
echo "Copy ScreenPlayWidget"
xcopy /s /y ScreenPlayWidget\release ..\PACKAGE
echo "Copy ScreenPlayWallpaper"
xcopy /s /y ScreenPlayWallpaper\release ..\PACKAGE
2018-11-11 16:41:55 +01:00
2018-11-11 16:19:51 +01:00
cd ..
windeployqt.exe --release --qmldir ScreenPlay/qml PACKAGE/ScreenPlay.exe
windeployqt.exe --release --qmldir ScreenPlayWallpaper/qml PACKAGE/ScreenPlayWallpaper.exe
2018-11-08 21:08:33 +01:00
2018-11-11 16:19:51 +01:00
cd PACKAGE
2018-11-08 21:08:33 +01:00
2018-11-11 16:19:51 +01:00
del /f *.cpp
2018-11-11 17:47:49 +01:00
del /f *.moc
2018-11-11 16:19:51 +01:00
del /f *.h
del /f *.obj
del /f *.res
2018-11-11 17:56:35 +01:00
del /f *.exp
del /f *.lib
2018-11-08 21:08:33 +01:00