Skip to content

Commit

Permalink
Update AppVeyor for msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
Simsys committed Mar 16, 2019
1 parent bbbe4f6 commit 020d998
Showing 1 changed file with 16 additions and 23 deletions.
39 changes: 16 additions & 23 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,33 @@ install:
- set PATH=%QT%\bin\;C:\Qt\Tools\QtCreator\bin\;%PATH%

before_build:
- dir "C:\Program Files (x86)"
- dir "C:\Program Files (x86)\Microsoft Visual Studio 14.0"
- dir "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC"
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM%
- echo %path%
- dir C:\Qt\5.12
- dir C:\Qt\5.12\msvc2015_64
- dir C:\Qt\5.12\msvc2015_64\bin
- qmake --version
- echo %PLATFORM%
- cd c:\dev\qhexedit
- md build
- cd build
# - qmake -r -spec win32-msvc CONFIG+=x86_64 CONFIG-=debug CONFIG+=release ..\example\qhexedit.pro
- if "%PLATFORM%" EQU "X64" (qmake -r -spec win32-msvc CONFIG+=x86_64 CONFIG-=debug CONFIG+=release ..\example\qhexedit.pro)
- if "%PLATFORM%" EQU "X86" (qmake -r -spec win32-msvc CONFIG+=Win32 CONFIG-=debug CONFIG+=release ..\example\qhexedit.pro)

build_script:
- nmake
- windeployqt.exe release\qhexedit.exe
- makensis ..\deploy.nsi
- nmake
- windeployqt.exe release\qhexedit.exe
- makensis ..\deploy.nsi
- copy QHexEdit.exe QHexEdit_%PLATFORM%.exe

artifacts:
- path: build\QHexEdit.exe
- path: build\QHexEdit_%PLATFORM%.exe

deploy:
description: 'Latest QHexEdit Release'
provider: GitHub
auth_token:
secure: WEV9mRJC/pC2HFqJMXbLzEfBXAHu8aGDFIR8ARSip9n6jDJyCz3KstjSPM4VsgKc
artifact: build\QHexEdit.exe
draft: false
prerelease: false
force_update: true
on:
branch: master # release from master branch only
appveyor_repo_tag: true # deploy on tag push only
description: 'Latest QHexEdit Release'
provider: GitHub
auth_token:
secure: WEV9mRJC/pC2HFqJMXbLzEfBXAHu8aGDFIR8ARSip9n6jDJyCz3KstjSPM4VsgKc
# artifact: build\QHexEdit.exe
draft: false
prerelease: false
force_update: true
# on:
# branch: master # release from master branch only
# appveyor_repo_tag: true # deploy on tag push only

0 comments on commit 020d998

Please sign in to comment.