diff --git a/resources/scripts/github-actions/build-windows.ps1 b/resources/scripts/github-actions/build-windows.ps1 index e60c225d3..ec428f1d5 100755 --- a/resources/scripts/github-actions/build-windows.ps1 +++ b/resources/scripts/github-actions/build-windows.ps1 @@ -6,6 +6,9 @@ echo "OS: $os; WebEngine: $webengine" $old_pwd = $pwd.Path +# Prepare environment. +cmd.exe /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" `& powershell + # Get Qt. $qt_version = "5.15.1" $qt_stub = "qt-$qt_version-dynamic-msvc2019-x86_64" @@ -21,9 +24,6 @@ $qt_qmake = "$qt_path\bin\qmake.exe" $env:PATH = "$qt_path\bin\;" + $env:PATH -# Prepare environment. -& "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" - # Build application. mkdir "rssguard-build" cd "rssguard-build"