This commit is contained in:
Martin Rotter 2020-12-08 12:52:00 +01:00
parent d1752f61d6
commit 628dfe35fc

View File

@ -19,4 +19,27 @@ Invoke-WebRequest -Uri $qt_link -OutFile $qt_output
$qt_path = (Resolve-Path $qt_stub).Path
$qt_qmake = "$qt_path\bin\qmake.exe"
$env:PATH = "$qt_path\bin\;" + $env:PATH
$env:PATH = "$qt_path\bin\;" + $env:PATH
mkdir "rssguard-build"
cd "rssguard-build"
& "$qt_qmake" "..\build.pro" "-r" "USE_WEBENGINE=$webengine" "CONFIG-=debug" "CONFIG-=debug_and_release" "CONFIG*=release"
nmake.exe
cd "src\rssguard"
nmake.exe install
cd "app"
windeployqt.exe --verbose 1 --compiler-runtime --no-translations --release rssguard.exe librssguard.dll
cd ".."
# Copy OpenSSL.
Copy-Item -Path "$qt_path\bin\libcrypto*.dll" -Destination ".\app\"
Copy-Item -Path "$qt_path\bin\libssl*.dll" -Destination ".\app\"
# Copy MySQL Qt plugin.
Copy-Item -Path "$qt_path\bin\libmariadb.dll" -Destination ".\app\"
nmake.exe windows_all
ls