2017-05-21 14:11:24 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-08-20 15:38:05 +02:00
|
|
|
QtPath='C:/Qt/5.11.1/msvc2017_64/bin'
|
|
|
|
QtCreatorPath='C:\Qt\Tools\QtCreator\bin'
|
|
|
|
ReleasePath='C:/Users/Eli/Code/Qt/build-ScreenPlay-Desktop_Qt_5_11_1_MSVC2017_64bit-Release/ScreenPlay/release/'
|
|
|
|
DeployPath='C:/Users/Eli/Code/Qt/ScreenPlay-Deploy/'
|
2018-02-21 22:29:41 +01:00
|
|
|
SourcePath=$PWD
|
2018-02-21 21:36:01 +01:00
|
|
|
SteamSDK='ScreenPlay/ThirdParty/steam/redistributable_bin/win64/'
|
2017-10-28 12:01:08 +02:00
|
|
|
|
|
|
|
|
2017-05-21 17:32:40 +02:00
|
|
|
echo 'This is script will now copy'
|
|
|
|
echo 'all depenecies into the release folder'
|
2017-05-21 14:11:24 +02:00
|
|
|
echo ''
|
2017-05-21 17:32:40 +02:00
|
|
|
|
2018-02-21 22:29:41 +01:00
|
|
|
echo 'Generating folder structure'
|
|
|
|
cd $ReleasePath
|
|
|
|
if [ ! -d $DeployPath ]
|
|
|
|
then
|
|
|
|
mkdir $DeployPath
|
|
|
|
fi
|
|
|
|
if [ ! -d $DeployPath'ScreenPlay' ]
|
|
|
|
then
|
|
|
|
mkdir $DeployPath'ScreenPlay'
|
|
|
|
fi
|
|
|
|
if [ ! -d $DeployPath'ScreenPlaySDK' ]
|
|
|
|
then
|
|
|
|
mkdir $DeployPath'ScreenPlaySDK'
|
|
|
|
fi
|
|
|
|
|
2018-08-20 15:38:05 +02:00
|
|
|
rm *.obj
|
|
|
|
rm *.cpp
|
|
|
|
rm *.o
|
|
|
|
|
2018-02-21 22:29:41 +01:00
|
|
|
echo 'Copying files from Release to Deploy path'
|
|
|
|
cp -r ./* $DeployPath'ScreenPlay'
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
cd 'ScreenPlaySDK'
|
|
|
|
|
|
|
|
cp 'qmldir' $DeployPath'ScreenPlaySDK'
|
|
|
|
cd 'release'
|
2018-08-20 15:38:05 +02:00
|
|
|
rm *.obj
|
|
|
|
rm *.cpp
|
|
|
|
rm *.o
|
2018-02-21 22:29:41 +01:00
|
|
|
cp -r ./* $DeployPath'ScreenPlaySDK'
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
cd 'ScreenPlayWindow'
|
|
|
|
cd 'release'
|
2018-08-20 15:38:05 +02:00
|
|
|
rm *.obj
|
|
|
|
rm *.cpp
|
|
|
|
rm *.o
|
2018-02-22 15:22:10 +01:00
|
|
|
cp -r ./* $DeployPath'ScreenPlay'
|
2018-02-21 22:29:41 +01:00
|
|
|
|
2018-03-08 22:03:05 +01:00
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
cd 'ScreenPlayWidget'
|
|
|
|
cd 'release'
|
2018-08-20 15:38:05 +02:00
|
|
|
rm *.obj
|
|
|
|
rm *.cpp
|
|
|
|
rm *.o
|
2018-03-08 22:03:05 +01:00
|
|
|
cp -r ./* $DeployPath'ScreenPlay'
|
|
|
|
|
2018-02-21 22:29:41 +01:00
|
|
|
|
|
|
|
echo ''
|
|
|
|
echo 'Deploying Steam SDK'
|
|
|
|
cp $SourcePath'/'$SteamSDK'steam_api64.dll' $DeployPath'ScreenPlay'
|
|
|
|
cp $SourcePath'/'$SteamSDK'steam_api64.lib' $DeployPath'ScreenPlay'
|
|
|
|
cp $SourcePath'/ScreenPlay/''steam_appid.txt' $DeployPath'ScreenPlay'
|
2018-03-01 20:10:26 +01:00
|
|
|
cp -R $SourcePath'/ScreenPlay/legal/' $DeployPath'ScreenPlay/'
|
2018-03-02 16:45:27 +01:00
|
|
|
|
2018-08-20 15:38:05 +02:00
|
|
|
echo 'Copying OpenSSL from QtCreator'
|
|
|
|
cp $QtCreatorPath'/libeay32.dll' $DeployPath'ScreenPlay'
|
|
|
|
cp $QtCreatorPath'/ssleay32.dll' $DeployPath'ScreenPlay'
|
2018-03-02 16:45:27 +01:00
|
|
|
|
2017-05-21 14:11:24 +02:00
|
|
|
|
2017-05-21 17:32:40 +02:00
|
|
|
echo ''
|
|
|
|
echo 'Deploying QtDLLs via windeployqt.exe'
|
2018-08-20 15:38:05 +02:00
|
|
|
qtDeployPath=' --release --qmldir '$SourcePath' '$DeployPath'/ScreenPlay/ScreenPlay.exe'
|
2017-05-21 17:32:40 +02:00
|
|
|
echo 'Loading please wait!'
|
2018-08-20 15:38:05 +02:00
|
|
|
exec $QtPath'/'windeployqt.exe $qtDeployPath
|
2017-05-21 17:32:40 +02:00
|
|
|
|
2017-05-21 14:11:24 +02:00
|
|
|
echo 'press any button to exit <3'
|
|
|
|
read sads
|