mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
66 lines
2.0 KiB
YAML
66 lines
2.0 KiB
YAML
image: Visual Studio 2015
|
|
|
|
version: 1.0.{build}
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
environment:
|
|
COMPILER: msvc
|
|
VSVER: 14
|
|
|
|
matrix:
|
|
- QT: C:\Qt\5.7\msvc2015_64
|
|
PLATFORM: amd64
|
|
- QT: C:\Qt\5.7\msvc2015
|
|
PLATFORM: x86
|
|
|
|
clone_depth: 1
|
|
|
|
# scripts that run after cloning repository
|
|
install:
|
|
- set PATH=%QT%\bin\;C:\Qt\Tools\QtCreator\bin\;C:\Qt\QtIFW2.0.1\bin\;%PATH%
|
|
- git submodule update --init --recursive
|
|
|
|
# scripts that run before build
|
|
before_build:
|
|
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM%
|
|
# After calling vcvarsall.bat, %PLATFORM% will be X64 or x86
|
|
- mkdir build
|
|
- cd build
|
|
- if "%PLATFORM%" EQU "X64" (qmake -r -spec win32-msvc2015 CONFIG+=x86_64 CONFIG-=debug CONFIG+=release ../VNote.pro)
|
|
- if "%PLATFORM%" EQU "x86" (qmake -r -spec win32-msvc2015 CONFIG+=Win32 CONFIG-=debug CONFIG+=release ../VNote.pro)
|
|
|
|
# custom build scripts
|
|
build_script:
|
|
- nmake
|
|
|
|
# scripts that run after build
|
|
after_build:
|
|
- mkdir distrib\VNote
|
|
- windeployqt.exe --dir .\distrib\VNote %APPVEYOR_BUILD_FOLDER%\build\src\release\VNote.exe
|
|
- copy "%APPVEYOR_BUILD_FOLDER%\build\src\release\VNote.exe" "distrib\VNote\VNote.exe"
|
|
- copy "%APPVEYOR_BUILD_FOLDER%\README.md" "distrib\VNote\README.md"
|
|
- copy "%APPVEYOR_BUILD_FOLDER%\LICENSE" "distrib\VNote\LICENSE.txt"
|
|
- echo %APPVEYOR_BUILD_VERSION% > "distrib\VNote\version.txt"
|
|
- echo %APPVEYOR_REPO_COMMIT% >> "distrib\VNote\version.txt"
|
|
- cd distrib
|
|
- 7z a vnote_win_%PLATFORM%_portable_%APPVEYOR_BUILD_VERSION%.zip VNote
|
|
|
|
artifacts:
|
|
- path: build\distrib\vnote_win_%PLATFORM%_portable_%APPVEYOR_BUILD_VERSION%.zip
|
|
name: portable
|
|
|
|
deploy:
|
|
- provider: BinTray
|
|
username: tamlok
|
|
api_key:
|
|
secure: YJqzsVDlC2NYH2RgzbUMtjZWbSXOdWUiiENOIqImo31hOfeiB0MiVGmBLmKPAHEg
|
|
subject: tamlok
|
|
repo: vnote
|
|
package: vnote
|
|
version: 1.0
|
|
publish: true
|
|
override: true
|