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
|
2019-10-28 18:39:43 +01:00
|
|
|
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
|
2019-07-27 11:36:33 +02:00
|
|
|
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
|
2019-07-27 11:36:33 +02:00
|
|
|
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
|
|
|
|