Skip to content

Commit 24029d3

Browse files
committed
Update AppVeyor for msvc
1 parent 294b2e7 commit 24029d3

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

appveyor.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,30 @@ version: build{build}
22

33
environment:
44
matrix:
5-
- example: qhexedit
6-
name: win32
7-
platform: mingw
5+
- QT: C:\Qt\5.12\msvc2017_64
6+
GENERATOR: Visual Studio 15 2017 Win64
7+
PLATFORM: x64
88

99
clone_folder: c:\dev\qhexedit
1010
clone_depth: 5
1111

1212
install:
13-
- set QTDIR=C:\Qt\5.11.3\mingw53_32
14-
- set PATH=%QTDIR%\bin;C:\Qt\Tools\mingw530_32\bin;%PATH%;"C:\Program Files (x86)\NSIS";%PATH%
13+
- dir C:\Qt
14+
- set PATH=%QT%\bin\;C:\Qt\Tools\QtCreator\bin\;%PATH%
1515

1616
before_build:
17-
- cd c:\dev\qhexedit
18-
- md build
19-
- cd build
17+
- '%QT%\bin\qtenv2.bat'
18+
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%
19+
- qmake --version
20+
- echo %PLATFORM%
21+
- cd c:\dev\qhexedit
22+
- md build
23+
- cd build
24+
- if "%PLATFORM%" EQU "x64" (qmake -r -spec win32-msvc CONFIG+=x86_64 CONFIG-=debug CONFIG+=release ..\example\qhexedit.pro)
25+
- if "%PLATFORM%" EQU "x86" (qmake -r -spec win32-msvc CONFIG+=Win32 CONFIG-=debug CONFIG+=release ..\example\qhexedit.pro)
2026

2127
build_script:
22-
- qmake ..\example\qhexedit.pro
23-
- mingw32-make
28+
- nmake
2429
- windeployqt.exe release\qhexedit.exe
2530
- makensis ..\deploy.nsi
2631

deploy.nsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!define VERSION "0.0.1"
2-
!define QT "C:\Qt\5.5\mingw492_32\bin\"
32
!define BUILD_DIR "C:\dev\qhexedit\build\release\"
43
!define TRANS_DIR "C:\dev\qhexedit\example\translations\"
54
!define OUTFILE_NAME "C:\dev\qhexedit\build\QHexEdit.exe"

0 commit comments

Comments
 (0)