Update Windows CI

This commit is contained in:
Black Hat 2019-02-13 14:54:40 +08:00
parent 81ce18f3bd
commit b71359e92a
1 changed files with 4 additions and 4 deletions

View File

@ -3,13 +3,13 @@ image: Visual Studio 2017
environment: environment:
DEPLOY_DIR: Spectral-%APPVEYOR_BUILD_VERSION% DEPLOY_DIR: Spectral-%APPVEYOR_BUILD_VERSION%
matrix: matrix:
- QTDIR: C:\Qt\5.11\msvc2017_64 - QTDIR: C:\Qt\5.12.1\mingw73_64
VCVARS: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat" VCVARS: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat"
PLATFORM: PLATFORM:
init: init:
- call "%QTDIR%\bin\qtenv2.bat" - call "%QTDIR%\bin\qtenv2.bat"
- set PATH=C:\Qt\Tools\QtCreator\bin;%PATH% - set PATH=%PATH%;C:\Qt\Tools\QtCreator\bin;%QT_DIR%\bin;C:\MinGW\bin
- call "%VCVARS%" %platform% - call "%VCVARS%" %platform%
- cd /D "%APPVEYOR_BUILD_FOLDER%" - cd /D "%APPVEYOR_BUILD_FOLDER%"
@ -18,10 +18,10 @@ before_build:
build_script: build_script:
- qmake spectral.pro CONFIG+=release CONFIG+=qtquickcompiler PREFIX="%DEPLOY_DIR%" - qmake spectral.pro CONFIG+=release CONFIG+=qtquickcompiler PREFIX="%DEPLOY_DIR%"
- nmake - mingw32-make
after_build: after_build:
- nmake install - mingw32-make install
- windeployqt --release --qmldir qml --qmldir imports "%DEPLOY_DIR%\spectral.exe" - windeployqt --release --qmldir qml --qmldir imports "%DEPLOY_DIR%\spectral.exe"
- 7z a spectral.zip "%DEPLOY_DIR%\" - 7z a spectral.zip "%DEPLOY_DIR%\"