2019-06-12 08:06:33 +02:00
|
|
|
# List startup folder.
|
|
|
|
$old_pwd=$pwd.Path
|
2020-04-27 11:05:40 +02:00
|
|
|
|
2020-04-28 11:32:14 +02:00
|
|
|
ssl_bin="C:\OpenSSL-v111-Win64\bin"
|
|
|
|
|
|
|
|
ls "$ssl_bin"
|
2020-04-28 11:17:44 +02:00
|
|
|
ls "C:\Program Files\MySQL\MySQL Server 5.7\lib"
|
|
|
|
|
2020-04-28 11:21:52 +02:00
|
|
|
ls "$env:QTDIR"
|
2020-04-28 11:22:53 +02:00
|
|
|
ls "$env:QTDIR\.."
|
2020-04-28 11:21:52 +02:00
|
|
|
|
2019-06-12 08:06:33 +02:00
|
|
|
ls
|
|
|
|
echo "Qmake args are: '$env:qmake_args'."
|
|
|
|
|
2019-06-12 08:20:32 +02:00
|
|
|
# Setup env path with qmake.
|
|
|
|
$env:PATH = "$env:QTDIR\bin;" + $env:PATH
|
|
|
|
|
2019-06-12 08:06:33 +02:00
|
|
|
mkdir "rssguard-build"
|
|
|
|
cd "rssguard-build"
|
|
|
|
qmake.exe ..\build.pro "$env:qmake_args"
|
|
|
|
nmake.exe
|
2020-04-28 10:37:24 +02:00
|
|
|
|
|
|
|
cd "src\rssguard"
|
2020-04-28 10:07:07 +02:00
|
|
|
nmake.exe install
|
2019-06-12 08:06:33 +02:00
|
|
|
|
2020-04-28 10:37:24 +02:00
|
|
|
cd "app"
|
2020-04-28 10:21:49 +02:00
|
|
|
windeployqt.exe --verbose 1 --compiler-runtime --no-translations --release rssguard.exe librssguard.dll
|
2020-04-28 10:07:07 +02:00
|
|
|
cd ".."
|
2020-04-28 11:32:14 +02:00
|
|
|
|
|
|
|
# Copy OpenSSL.
|
|
|
|
Copy-Item -Path "$ssl_bin\libcrypto*.dll" -Destination ".\app\"
|
|
|
|
Copy-Item -Path "$ssl_bin\libssl*.dll" -Destination ".\app\"
|
|
|
|
|
|
|
|
# Build/copy MySQL Qt plugin.
|
|
|
|
|
2019-06-12 08:06:33 +02:00
|
|
|
nmake.exe windows_all
|
|
|
|
cd "$old_pwd"
|