From 4b92f7115bb14746acebe47719a9f3f16522ba5a Mon Sep 17 00:00:00 2001 From: Nils Schimmelmann Date: Sat, 7 Dec 2024 15:20:57 -0600 Subject: [PATCH] switch back to cmd --- .appveyor.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index e4437895..bb2fda9a 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -302,18 +302,18 @@ for: - ps: | $env:package_version = ("$(git describe --tags --always --long)").trim() Update-AppveyorBuild -Version "$env:package_version-$env:APPVEYOR_BUILD_NUMBER" - - ps: | - $MingwPath = "C:\Qt\Tools\mingw1310_64" - if (-Not (Test-Path $MingwPath)) { - Write-Host "Mingw tools not found. Installing..." - pip install --disable-pip-version-check aqtinstall - aqt install-tool windows desktop tools_mingw1310 --outputdir "C:\Qt" 2>&1 | Out-Host - } else { - Write-Host "Mingw tools already cached. Skipping download." - } + - cmd: | + set MINGW_PATH=C:\Qt\Tools\mingw1310_64 + if not exist "%MINGW_PATH%" ( + echo Mingw tools not found. Installing... + pip install --disable-pip-version-check aqtinstall + python -m aqt install-tool windows desktop tools_mingw1310 --outputdir C:\Qt + ) else ( + echo Mingw tools already cached. Skipping download. + ) before_build: - - cmd: if %COMPILER%==MinGW if %ARCH%==x64 set PATH=C:/Qt/Tools/mingw1310_64/bin;%PATH% + - cmd: if %COMPILER%==MinGW if %ARCH%==x64 set PATH=%MINGW_PATH%;%PATH% - cmd: set PATH=%QTDIR%\bin;%PATH%;C:\Qt\Tools\QtCreator\bin - cmd: if %COMPILER%==MinGW set PATH=%PATH:C:\Program Files\Git\usr\bin;=% - cmd: echo PATH=%PATH%